Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Interpolating variables in JSON string

by muba (Priest)
on Jan 29, 2013 at 13:52 UTC ( #1015876=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $json = quotemeta( {"auth":{"RAX-KSKEY:apiKeyCredentials":{"use
    +rname":$USERNAME, "apiKey":$API_KEY}}} );
    
  2. or download this
        my $json = quotemeta( {"auth" => {"RAX-KSKEY:apiKeyCredentials" =>
    + {"username" => $USERNAME, "apiKey" => $API_KEY}}} );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015876]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-10-01 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (29 votes), past polls