Skip to content

json

Contains utility functions for JSON.

Interface Description
EditJsonOptions Options for editJson.
EditJsonParams Parameters for editJson.
EditJsonSyncParams Parameters for editJsonSync.
Function Description
editJson Reads, edits, and writes back a JSON file using a provided edit function.
editJsonSync Reads, edits, and writes back a JSON file using a provided edit function.
readJson Reads a JSON file and parses its contents into a JavaScript object of type T.
readJsonSync Reads a JSON file and parses its contents into a JavaScript object of type T.
writeJson Writes a JavaScript object to a JSON file.
writeJsonSync Writes a JavaScript object to a JSON file.
Type Description
EditJsonSyncOptions Options for editJsonSync.