zulip/zerver/lib/bugdown
Eeshan Garg 96036f07a3 api_code_example: Use json instead of ujson; specify separators.
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.
2018-02-20 20:10:38 -03:30
..
__init__.py Add stream ids to urls for stream-related narrows. 2018-02-19 09:03:11 -08:00
api_arguments_table_generator.py api docs: Generate Arguments table from JSON. 2017-12-29 17:03:36 -05:00
api_code_examples.py api_code_example: Use json instead of ujson; specify separators. 2018-02-20 20:10:38 -03:30
fenced_code.py zerver/lib: Remove u prefix from strings. 2018-02-05 12:12:58 -08:00
testing_mocks.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
tlds-alpha-by-domain.txt [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00