Added a custom JSON encoder for json.dumps().
Added a custom JSON encoder based on json.JSONEncoder. Changes from the default behaviour:
- Using
_make_iterencode
as the only_iterencode
. - Change
_make_iterencode
, setting_indent
in_iterencode_dict
toNone
. - Use
py_encode_basestring
as the onlyencoder
.
Signed-off-by: Md Safiyat Reza safiyat@voereir.com