mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-19 09:37:16 -05:00
remove space after comma and colon
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user