mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08: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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| api_arguments_table_generator.py | ||
| api_code_examples.py | ||
| fenced_code.py | ||
| testing_mocks.py | ||
| tlds-alpha-by-domain.txt | ||