Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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:


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?



Replies are listed 'Best First'.
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.


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1026092]
Approved by kcott
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2018-01-20 00:35 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (226 votes). Check out past polls.