On Mar 28, 2012 6:54 AM, "Nadir Sampaoli" <nadirsampa...@gmail.com> wrote:
>
> 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 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?
>

The functions with an s take string parameters. The others take file
streams.

foo = '{"age": 38}'
my_json = json.loads(foo)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to