compliance-trestle icon indicating copy to clipboard operation
compliance-trestle copied to clipboard

Leverage `orjson.dumps` as part of the native OBM json serializer

Open butler54 opened this issue 3 years ago • 0 comments

Issue description / feature objectives

Today most of the serialisation uses orjson, however, the native .json() method is still exposed. Use the json_dumps config attribute to change to orjson.

Following these: https://pydantic-docs.helpmanual.io/usage/exporting_models/#custom-json-deserialisation instructions worked, however, orjson options (such as indenting) could not be passed.

Caveats / Assumptions

Completion Criteria

butler54 avatar Nov 10 '21 01:11 butler54