The expected type of the parsed JSON object.
The file path to read.
Optional
encoding: stringThe text encoding to use (default: 'utf-8').
Optional
signal: AbortSignalOptional AbortSignal to cancel the operation.
A promise that resolves to the parsed JSON object of type T.
Reads and parses a JSON file from the specified path.