[sf-perl] REST data parsing

Steve Fink sphink at gmail.com
Wed Sep 8 09:21:18 PDT 2010

On Tue, Sep 7, 2010 at 5:57 PM, 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 went from objToJson to to_json and encode_json, with
different options. I also seem to recall that JSON::XS didn't always
match up to JSON either, even though it still got automatically pulled
in. I don't remember the specifics, just that it was a PITA. (There
were enough incompatibilities in the format that it didn't work to
just change function names.)

Oh well. Hopefully, it's all been resolved now. I notice that the
incompatible change is documented in JSON.pm.

More information about the SanFrancisco-pm mailing list