Difference between json.load() and json.loads() [From: RE: question about file handling with "with"]
Nadir Sampaoli
nadirsampaoli at gmail.com
Wed Mar 28 09:50:56 EDT 2012
Hello everyone (my first message in the mailing list),
> > Is the following function correct?
> Yes, though I'd use json.load(f) instead of json.loads().
>
The docs <http://docs.python.org/library/json.html#basic-usage> aren't very
clear (at least for me) about the difference between json.load() and
json.loads (and about "dump()" and "dumps()" too"). Could you clarify it
for me?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120328/eb5a6e54/attachment.html>
More information about the Python-list
mailing list