Functions
parse
parse(path) -> table<any>
- path
string
table<any>
- Table representing the json file parsed.
parse_schema
parse_schema(path, schema) -> table<any>
- path
string
- schema
table<any>
table<any>
- Table representing the json file parsed.
parse_string
parse_string(str) -> table<any>
- str
string
table<any>
- Table representing the json string parsed.
parse_string_schema
parse_string_schema(str, schema) -> table<any>
- str
string
- schema
table<any>
table<any>
- Table representing the json string parsed.
save
save(value, path, compact?)
- value
table<any>
- Table to convert to json. - path
string
- compact
bool
- Defaults to false, use to remove indent and new lines.
string
string(value, compact?) -> string
- value
table<any>
- Table to convert to json. - compact
bool
- Defaults to false, use to remove indent and new lines.
string
standardize
standardize(str) -> string
- str
string
- JSON data as a string.
string
- The same JSON but with non-standard features removed.