Home > @microsoft/node-core-library > JsonFile > loadAndValidate

JsonFile.loadAndValidate() method

Loads a JSON file and validate its schema.

Signature:

static loadAndValidate(jsonFilename: string, jsonSchema: JsonSchema, options?: IJsonSchemaValidateOptions): any;

Parameters

Parameter Type Description
jsonFilename string  
jsonSchema JsonSchema  
options IJsonSchemaValidateOptions  

Returns:

any