Problems? Is your data what you think it is? | |
PerlMonks |
Re: Storable style de-serializing for JSON structuresby Joost (Canon) |
on Oct 11, 2009 at 22:47 UTC ( [id://800588]=note: print w/replies, xml ) | Need Help?? |
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?
In Section
Seekers of Perl Wisdom
|
|