stack

Home > @infiniteobjects/core-library-node > FileSystem > readJson

FileSystem.readJson() method

Read and parse a JSON file, throws more helpful JSON errors.

Signature:

static readJson<T = ObjectLike>(filePath: string): Promise<T>;

Parameters

Parameter Type Description
filePath string  

Returns:

Promise<T>