mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 03:44:52 -04:00
Reduce unnecessary whitespace in JSON. (#7372)
This commit is contained in:
parent
2ffd6783c7
commit
4dd27e6d11
15 changed files with 56 additions and 53 deletions
|
@ -63,5 +63,8 @@ def _handle_frozendict(obj):
|
|||
)
|
||||
|
||||
|
||||
# A JSONEncoder which is capable of encoding frozendicts without barfing
|
||||
frozendict_json_encoder = json.JSONEncoder(default=_handle_frozendict)
|
||||
# A JSONEncoder which is capable of encoding frozendicts without barfing.
|
||||
# Additionally reduce the whitespace produced by JSON encoding.
|
||||
frozendict_json_encoder = json.JSONEncoder(
|
||||
default=_handle_frozendict, separators=(",", ":"),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue