Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

JSON recomendations

by johnfl68 (Beadle)
on Mar 29, 2013 at 05:39 UTC ( #1026092=perlquestion: print w/ replies, xml ) Need Help??
johnfl68 has asked for the wisdom of the Perl Monks concerning the following question:

Hello:

I deal with a few different data API's, many of them are phasing out XML and pushing people to start using JSON.

There seem to be numerous JSON modules at CPAN (JSON::Syck, JSON::XS, etc.), what would you recommend for parsing JSON data into Perl?

Thanks!

John

Comment on JSON recomendations
Re: JSON recomendations
by Anonymous Monk on Mar 29, 2013 at 05:46 UTC

    Does it matter? I don't think it does

    OTOH, look at the last release date and pick the youngest with the least amount of open bugs

    You can't go wrong with JSON/JSON::XS

Re: JSON recomendations
by moritz (Cardinal) on Mar 29, 2013 at 06:49 UTC
Re: JSON recomendations
by davido (Archbishop) on Mar 29, 2013 at 17:53 UTC

    If your needs are fairly general, just use JSON, and have JSON::XS installed so that JSON can select it automatically. If you have more specific needs, then look at the niche solutions. Most of the other solutions exist to scratch an itch. JSON::Tiny, for example, was forked from Mojo::JSON to form a light-weight, pure-Perl, easily embedded / easily distributed alternative to the heavier JSON.


    Dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-10-22 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls