Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Converting from Storable to YAML

by moritz (Cardinal)
on Jan 21, 2011 at 21:57 UTC ( [id://883627]=note: print w/replies, xml ) Need Help??


in reply to Re: Converting from Storable to YAML
in thread Converting from Storable to YAML

JSON and YAML fill two different needs.

JSON is meant for data interchange between different languages, and can only handle the most basic data types (arrays, hashes, strings, numbers and undef, and only tree structures).

YAML on the other hand also handles blessed references and self-referential constructs (ie. arbitrary object graphs).

No wonder that JSON modules are faster than YAML modules, they do way less.

When the feature set of JSON is sufficient, choosing JSON over YAML is a good idea (simpler format, easier to implement right, less chance of ambiguity). If not, not.

There's also JSYNC, which tries to combine the advantages of both formats. I don't know how mature it is today.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-24 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found