remove space after comma and colon

pull/14731/head
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): def info_json_dumps(data):
"""encode data into json string, but swap single and double quotes to reduce escaping issues""" """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): def info_json_loads(info_json):