boing.net.json
— JSON encoding¶The module boing.net.json
provides methods and classes for
supporting JSON object serialization. It uses the python json standard
module, but it provides a default solution for serializing bytestrings
and datetime.datetime objects.
Encoder and Decoder classes provide a standard interface for the JSON encoding.
boing.net.json.
encode
(obj)¶Return a string containing the json serialization of obj.
boing.net.json.
decode
(string)¶Return the object obtained for decoding string using the JSON decoding.