hs.json.decode(jsonString) -> table
hs.settings
)hs.json.encode(val[, prettyprint]) -> string
hs.settings
)hs.json.read(path) -> table | nil
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Decodes JSON file into a table. | | Parameters |nil
if an error occurs.hs.json.write(data, path, [prettyprint], [replace]) -> boolean
true
to format the JSON for human readability, false
to format the JSON for size efficiency. Defaults to false
true
to replace an existing file at the same path if one exists. Defaults to false
true
if successful otherwise false
if an error has occurred