Home > @infiniteobjects/core-library-node > FileSystem > readJson
Read and parse a JSON file, throws more helpful JSON errors.
Signature:
static readJson<T = ObjectLike>(filePath: string): Promise<T>;
| Parameter | Type | Description |
|---|---|---|
| filePath | string |
Returns:
Promise<T>