Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Convert JSON to Perl and back with unicode

by Anonymous Monk
on Apr 09, 2020 at 05:51 UTC ( #11115260=note: print w/replies, xml ) Need Help??


in reply to Convert JSON to Perl and back with unicode

JSON->new->utf8(1)->pretty->encode( $perl_scalar );

$perl_scalar = $json->decode($json_text)

  • Comment on Re: Convert JSON to Perl and back with unicode

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2020-07-06 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?