Function: readJsonFile

readJsonFile<T>(path, options?): T

Reads a JSON file and returns the object the JSON content represents.

Type parameters

NameType
Textends object = any

Parameters

NameTypeDescription
pathstringA path to a file.
options?JsonReadOptionsJSON parse options

Returns

T

Object the JSON content of the file represents