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. 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. |
- [TurboGears] Re: simple_json now in use Bob Ippolito
- [TurboGears] Re: simple_json now in use Jorge Godoy
- [TurboGears] Re: simple_json now in use Kevin Dangoor
- [TurboGears] Re: simple_json now in use Kevin Dangoor

