Skip to content
AI Monorepos Free online conference · June 23 Join us!

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

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

NameType
Textends object = any
NameTypeDescription
pathstringA path to a file.
options?JsonReadOptionsJSON parse options

T

Object the JSON content of the file represents