Home > @rushstack/node-core-library > JsonFile > loadAndValidate
JsonFile.loadAndValidate() method
Loads a JSON file and validate its schema.
Signature:
static loadAndValidate(jsonFilename: string, jsonSchema: JsonSchema, options?: IJsonFileLoadAndValidateOptions): JsonObject;
Parameters
Parameter | Type | Description |
---|---|---|
jsonFilename | string | |
jsonSchema | JsonSchema | |
options | IJsonFileLoadAndValidateOptions | (Optional) |
Returns: