compliance-trestle
compliance-trestle copied to clipboard
Leverage `orjson.dumps` as part of the native OBM json serializer
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.