json
utility makes it easier to read and write to JSON files within in your checks.
This utility expects an absolute path to a JSON file and returns an object with methods that help you read and write to any JSON file.
To get full type-safety on all returned methods you can pass a generic type to the json
function.
exists
get
undefined
will be returned.
contains
false
will be returned.
set
merge
remove
delete