Skip to content

Switch from `orjson` to Python standard library `json` module

Christophe Benz requested to merge python-json into master

Reasons

  • orjson does not support standard keyword arguments of json.loads/dumps functions like sort_keys or ensure_ascii
    • it provides options with different names, but I prefer not attaching the source code to a particular implementation
  • json.dumps returns bytes instead of str which would imply other changes
  • ujson does not work with big values (cf dbnomics-fetchers/management#712 (closed))
  • I'm not sure that we have a performance bottleneck with json decoding (encoding is done by convert scripts)

Until something better appears, let's stick with default Python json module.

Merge request reports