Module jsonutils::file

source ·
Expand description

§Read & Write JSON Utilities

A collection of utilities for reading and writing JSON files.

Functions§

  • Reads a JSON file and deserializes it into a data structure. This function will error if the file cannot be read or deserialized into the aforementioned data structure.
  • Writes an object to a JSON file. This function will error if the file cannot be created or written to.
  • Writes an object to a JSON file with a custom indentation.