It's also API compatible with json-py, all you have to do is change the import..  

e.g.:

-import json
+import simple_json as json

However, json-py's API is horribly named and I would recommend a refactor towards the marshal/pickle-inspired API.  This is trivial: change read(s) to loads(s) and write(obj) to dumps(obj).

There are, of course, load and dump for file-like objects.  Technically load is currently worthless because it just does loads(f.read()), but dump actually will write in chunks which may be useful in some conditions.

-bob

On Dec 25, 2005, at 9:36 PM, Jeff Watkins wrote:

Thanks very much, Bob. I'll convert the AjaxDataController to use the new API.

On 25 Dec, 2005, at 7:21 pm, Bob Ippolito wrote:

Ok, it's done in svn with the obvious API

--
Jeff Watkins

Democracy n: A country where the newspapers are pro-American.



Reply via email to