diff --git a/zerver/lib/bugdown/api_code_examples.py b/zerver/lib/bugdown/api_code_examples.py index 58aae23eaf..6d56787c34 100644 --- a/zerver/lib/bugdown/api_code_examples.py +++ b/zerver/lib/bugdown/api_code_examples.py @@ -1,7 +1,7 @@ import re import os import sys -import ujson +import json import inspect from markdown.extensions import Extension @@ -143,7 +143,8 @@ class APICodeExamplesPreprocessor(Preprocessor): else: fixture_dict = zerver.lib.api_test_helpers.FIXTURES[function] - fixture_json = ujson.dumps(fixture_dict, indent=4, sort_keys=True) + fixture_json = json.dumps(fixture_dict, indent=4, sort_keys=True, + separators=(',', ': ')) fixture.append('```') fixture.extend(fixture_json.splitlines())