Signature |
hs.json.write(data, path, [prettyprint], [replace]) -> boolean |
Type |
Function |
Description |
Encodes a table as JSON to a file |
Parameters |
- data - A table containing data to be encoded as JSON
- path - The path and filename of the JSON file to write to
- prettyprint - An optional boolean,
true to format the JSON for human readability, false to format the JSON for size efficiency. Defaults to false
- replace - An optional boolean,
true to replace an existing file at the same path if one exists. Defaults to false
|
Returns |
true if successful otherwise false if an error has occurred
|
Source |
extensions/json/internal.m |