Module jsonutils::file

source ·
Expand description

This module provides functions to read and write JSON files.

Functions§

  • Reads a JSON file and deserializes it into an object. This function will error if the file cannot be read or deserialized.
  • 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.