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

Re: Storable style de-serializing for JSON structures

by Joost (Canon)
on Oct 11, 2009 at 22:47 UTC ( #800588=note: print w/replies, xml ) Need Help??


in reply to Storable style de-serializing for JSON structures

JSON doesn't support anything but "dumb" data structures. No class instances or anything like that.

Storable and Data::Dumper and others just produce string data, and can serialize perl objects. If all you care about is something that's technically JSON and you only pass it to other perl code, you can put the serialized string into a JSON attribute and retrieve it on the other side.

The real question would then be: why use JSON at all?

  • Comment on Re: Storable style de-serializing for JSON structures

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://800588]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-08-20 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (317 votes). Check out past polls.

    Notices?