Discussion:
[jifty-devel] Jifty::JSON updates
Thomas Sibley
2010-01-08 00:42:59 UTC
Permalink
Hi All,

If you use Jifty::JSON in your apps in your own code, please read the
rest of this email.

I've updated Jifty::JSON to use modern versions of the excellent JSON
and JSON::XS modules. The interface has changed slightly, and the
functions objToJson and jsonToObj are deprecated (but still exist) in
favor of the more standard encode_json and decode_json.

Additionally, this update deprecates the "singlequote" option that the
previous version of Jifty::JSON supported. If you're embedding JSON in
HTML attributes using the singlequote option, you'll want to HTML escape
the entire blob of JSON instead. objToJson and jsonToObj will now croak
if you attempt to use the "singlequote" option.

Cheers,
Thomas

Loading...