remove space after comma and colon

This commit is contained in:
w-e-w 2024-01-23 03:44:21 +09:00
parent 28cc18cbdf
commit c7fbcb5789
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ info_json_keys = set()
def info_json_dumps(data):
"""encode data into json string, but swap single and double quotes to reduce escaping issues"""
return json.dumps(data, ensure_ascii=False).translate(quote_swap)
return json.dumps(data, ensure_ascii=False, separators=(',', ':')).translate(quote_swap)
def info_json_loads(info_json):