json

New in version 1.1.0.

JSON: JavaScript Object Notation

see:RFC 4627
requires:cjson | minjson
smisk.serialization.json.json_encode(object) → str

Encode python object

Raises:EncodeError
smisk.serialization.json.json_decode(data) → object

Decode JSON data

Raises:DecodeError
class smisk.serialization.json.JSONSerializer

JSON with JSONP support.

JSONP support through passing the special callback query string parameter.

serialize(params, charset)
serialize_error(status, params, charset)
unserialize(file, length=-1, charset=None)
class smisk.serialization.json.JSONPSerializer

JSON with Padding.

callback can be passed in the query string.

serialize(params, charset)
serialize_error(status, params, charset)
unserialize(file, length=-1, charset=None)
exception smisk.serialization.json.DecodeError
JSON decoding error
exception smisk.serialization.json.EncodeError
JSON encoding error