Module jsonutils

Functions

save_to_json (path, value)
load_from_json (path, schema[, constructors])


Functions

save_to_json (path, value)

Parameters:

Returns:

    bool

Or

  1. nil
  2. string error message
load_from_json (path, schema[, constructors])

Parameters:

  • path string
  • schema tab JSON Schema
  • constructors {[string]=func,...} constructors for tables with the __name property; the values should be func(options: tab): tab; the constructor can either return an error as the second result or throw it as an exception (optional)

Returns:

    any

Or

  1. nil
  2. string error message
generated by LDoc 1.5.0 Last updated 2025-08-29 19:58:28