Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-11-23 14:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (336 votes). Check out past polls.

    Notices?