1.7. json
— JSON encoder and decoder¶
JSON (JavaScript Object Notation) is a lightweight data interchange format inspired by JavaScript object literal syntax.
-
json.
dumps
(obj)¶ Serialize obj to a JSON formatted str using this conversion table.
-
json.
loads
(s)¶ Deserialize s (a str instance containing a JSON document) to a Python object using this conversion table.