From 6aa8ca67a7406b7a55021fe99fdb6b0bbe30f34d Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Fri, 12 May 2023 12:05:54 -0400 Subject: [PATCH] increase JSON minification (#1245) --- pygeoapi/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pygeoapi/util.py b/pygeoapi/util.py index 720ad54..dd85bba 100644 --- a/pygeoapi/util.py +++ b/pygeoapi/util.py @@ -243,7 +243,8 @@ def to_json(dict_: dict, pretty: bool = False) -> str: else: indent = None - return json.dumps(dict_, default=json_serial, indent=indent) + return json.dumps(dict_, default=json_serial, indent=indent, + separators=(',', ':')) def format_datetime(value: str, format_: str = DATETIME_FORMAT) -> str: