zero.io.dump_json

zero.io.dump_json(x, path, **kwargs)[source]

Dump an object to a file in JSON format.

Parameters
  • x (JSON) – the JSON-compatible object

  • path (PathLike) – path to the file. If the file doesn’t exist, it will be created, otherwise, overwritten.

  • kwargs – arguments for json.dump

Return type

None