Home > @rushstack/node-core-library > JsonFile > loadAndValidateAsync
JsonFile.loadAndValidateAsync() method
An async version of JsonFile.loadAndValidate().
Signature:
static loadAndValidateAsync(jsonFilename: string, jsonSchema: JsonSchema, options?: IJsonFileLoadAndValidateOptions): Promise<JsonObject>;
Parameters
Parameter | Type | Description |
---|---|---|
jsonFilename | string | |
jsonSchema | JsonSchema | |
options | IJsonFileLoadAndValidateOptions | (Optional) |
Returns:
Promise<JsonObject>