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