[sf-perl] REST data parsing
Joe Brenner
doom at kzsu.stanford.edu
Wed Sep 8 13:37:57 PDT 2010
Steve Fink <sphink at gmail.com> wrote:
> Joe Brenner <doom at kzsu.stanford.edu> wrote:
> > Steve Fink <sphink at gmail.com> wrote:
> >
> >> That data is JSON-formatted. Try searching with that buzzword instead.
> >> Warning: I haven't been terribly happy with the existing perl JSON
> >> libraries, but I think that's mostly because of incompatible API
> >> changes.
> >
> > I've been using JSON lately, without any complaints (as of yet):
>
> Yes, my complaint is that I've encountered numerous modules that have
> a simple 'use JSON;' but are clearly written for a version with a
> totally different API. It seems like somebody must've adopted somebody
> else's API at some point, but didn't bother with backwards
> compatibility.
It might make sense to explicitly use JSON::XS to have one less
dependency in the system.
Reviews on CPAN indicate that JSON went through an API from 1.0 to 2.0,
though this sounds like it went through three changes:
> It went from objToJson to to_json and encode_json, with different
> options.
There's been all too much of this going around lately. I get the
feeling that the present generation of open source programmers flat-out
doesn't understand the issue. They just expect everyone else to just
deal with whatever changes they feel like making.
> Oh well. Hopefully, it's all been resolved now.
Late-adopters like myself get to dodge a lot of these things.
More information about the SanFrancisco-pm
mailing list