jaxrts.saving.dump

jaxrts.saving.dump(obj, fp, *args, **kwargs)[source]

Save an object to file. Uses json.dump() under to hood, and forwards args and kwargs to this function.

Parameters:
  • obj – The object to serialize

  • fp – The file where to save the data to

Examples

>>> with open("element.json", "w") as f:
        dump(jaxrts.Element("C"), f, indent=2)