Module jsonutils
Functions
| load_from_json (path, schema[, constructors]) |
Functions
- load_from_json (path, schema[, constructors])
-
Parameters:
- path string
- schema tab JSON Schema
- constructors
{[string]=func,...}
constructors for tables with the
__nameproperty; the values should befunc(options: tab): tab; the constructor can either return an error as the second result or throw it as an exception (optional)
Returns:
-
any
Or
- nil
- string error message