json.decode()
Parses one JSON value.
Signature
json.decode(value)
Parameters
Atom text containing one complete JSON document.
Returns
Atom value.
Behavior
Object fields follow input order. An object becomes a dictionary.
Errors
Malformed JSON with byte offset, duplicate object key or excessive nesting.
Example
use json
v = json.decode('\{"title":"Atom"}')
assert(v.title == 'Atom')