mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
The Markdown extension that lives inside zerver/lib/bugdown/api_code_example.py previously used ujson. ujson's `dumps` function doesn't accept a `separators` argument, which means we have no control over how the JSON is pretty-printed. This resulted in JSON fixtures with no spaces after the colon, which looks unnecessarily convoluted. So now, we use the built-in `json` module to get around this. For further reading, this issue <https://github.com/esnme/ultrajson/issues/82> opened on ujson's repo explains why they are reluctant to support such formatting due to performance considerations.
5.1 KiB
5.1 KiB