JSON-XS reviews

cpanratings
 

RSS | Module Info | Add a review of JSON-XS

JSON-XS (2.33) *****

Excellent module, stable fast, good API and clear docs.

vsespb - 2013-01-16T13:09:47 (permalink)

2 out of 4 found this review helpful. Was this review helpful to you?  Yes No

JSON-XS (2.32) *****

iit's a very good module. and I like it. thanks for the sharing.

Fayland Lam - 2012-04-24T07:37:40 (permalink)

1 out of 3 found this review helpful. Was this review helpful to you?  Yes No

JSON-XS (2.32) *

PUBLIC SERVICE ANNOUNCEMENT!!!

Don't use any modules by Marc Lehmann, you will almost certainly regret it later. This author has a history of extreme hostility towards the Perl community and will actively prevent you from using his software if he doesn't like you, or what you do with it.

To give you an example, in the 6.1 release of AnyEvent he made AnyEvent.pm die if you use it together with IO::Async::Loop::AnyEvent. metacpan.org/source/MLEHMANN/AnyEvent...

See also this P5P thread for a little more context. www.nntp.perl.org/group/perl.perl5.po...

PSA Perl - 2012-04-24T07:25:36 (permalink)

7 out of 21 found this review helpful. Was this review helpful to you?  Yes No

JSON-XS (2.32) *****

perfect, i use it for AJAX, Settings, Translations and it performs great.

When using JSON with utf8 files you have to make a desisson
1. read/write with ":encoding(utf-8)" and do NOT use json->new->utf8()
2. read/write raw files(binmode,:raw) and use json->new->utf8()

(tested with perl 5.12)

If the files can have BOM i prefere reading it with File::BOM
my $encoding = open_bom(FH, $path, ':encoding(utf-8)');
local $/;
my $data = <FH>;

my $json = $self->[json] = JSON::XS->new;
$json->relaxed(1);
$json->pretty(1);
$h = $json->decode($data);

keywan g. - 2012-02-24T08:09:38 (permalink)

1 out of 1 found this review helpful. Was this review helpful to you?  Yes No

JSON-XS (2.29) *****

Yes! It's pretty fast!

Tokuhiro Matsuno - 2010-03-27T17:59:33 (permalink)

2 out of 4 found this review helpful. Was this review helpful to you?  Yes No

JSON-XS (2.29) *****

The ability to transmit and receive data structures as text between wildly different systems and architectures is a nut that folks have been trying to crack for *years*.

Serializing and marshaling data structures is more important now than ever, especially with the advances in browser tech using XMLHttpRequest objects. JSON::XS offers Perl a super-fast way to manage this data exchange - and does it completely object-oriented *or* function-based. Its strict adherence to the JSON documentation prevents constructs such as {foo: "Bar"} and instead requires {"foo": "Bar"} but otherwise does the job perfectly and quickly.

A big "thank you" to the author for making this available to us all!

John Drago - 2010-03-27T10:55:56 (permalink)

3 out of 3 found this review helpful. Was this review helpful to you?  Yes No

JSON-XS (2.24) **

It might be fast, but frequently it will segfault when encoding.

Blue - 2009-07-09T17:32:58 (permalink)

4 out of 11 found this review helpful. Was this review helpful to you?  Yes No

JSON-XS (2.24) *****

We've used JSON::Syck before and experienced troubles with it after a while as it generates "JSON" which is sometimes not even valid JavaScript.

We've since switched to this module - if you ever need JSON encoding/decoding - use this!

Markus Peter - 2009-06-23T01:41:58 (permalink)

4 out of 4 found this review helpful. Was this review helpful to you?  Yes No

JSON-XS (2.2) *****

This module is just terrific. I've benchmarked it against other data serializers and, at least in simple cases, it's faster than them all, including Storable. Making JSON a more attractive format for configuration files. If I'd known about it sooner I could have saved many headaches trying to debug roundtripping data and reference problems.

Ashley Pond V - 2008-04-16T15:44:57 (permalink)

4 out of 4 found this review helpful. Was this review helpful to you?  Yes No

JSON-XS (2.01)


Would it have been so hard to leave some backwards-compatibility stub/wrapper functions when you changed the API for 2.x? Or to have left 1.x on CPAN instead of deleting it, for those who are still holding back on your older version until they get all of their code fixed to work around the API breakage?

Brandon L Black - 2008-02-16T13:29:38 (permalink)

12 out of 12 found this review helpful. Was this review helpful to you?  Yes No

JSON-XS (1.53) *****

As far as I am concerned, this is the only JSON module you will ever need. It is fast (which I don't really care that much about, but it's a nice bonus), it is complete (the *only* JSON module which handles unicode correctly) and it is simple to use. We use it at work to produce medium-large (anywhere from 20-120K when saved to disk) JSON structures in 5 different languages (including Japanese), and it Just Works.

Excellent module, highly recommended.

Stevan Little - 2007-11-29T08:02:22 (permalink)

15 out of 16 found this review helpful. Was this review helpful to you?  Yes No
1 hidden unhelpful review