Skip to content

Added a custom JSON encoder for json.dumps().

Md Safiyat Reza requested to merge touchstone_common_json into master

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 to None.
  • Use py_encode_basestring as the only encoder.

Signed-off-by: Md Safiyat Reza safiyat@voereir.com

Merge request reports