Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 browsing the Monastery: (4)
As of 2018-07-22 22:33 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (456 votes). Check out past polls.