Difference between json.load() and json.loads() [From: RE: question about file handling with "with"]

Nadir Sampaoli nadirsampaoli at gmail.com
Wed Mar 28 10:03:36 EDT 2012


2012/3/28 ian douglas
>
> The functions with an s take string parameters. The others take file
> streams.
>
> foo = '{"age": 38}'
> my_json = json.loads(foo)
>
I see, it makes perfectly sense now. Thanks for clearing it up.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120328/c215efb4/attachment-0001.html>


More information about the Python-list mailing list