[jifty-devel] Jifty::JSON updates

Thomas Sibley trs at bestpractical.com
Thu Jan 7 19:42:59 EST 2010

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.


More information about the jifty-devel mailing list