mirror of https://github.com/zulip/zulip.git
96036f07a3
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. |
||
---|---|---|
.. | ||
fixtures | ||
lib | ||
management | ||
migrations | ||
templatetags | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py | ||
static_header.txt | ||
storage.py |