Learn R Programming

validatejsonr (version 1.0.4)

validate_jsonfile_with_schemafile: Validate a JSON file against a JSON Schema file

Description

Description

Usage

validate_jsonfile_with_schemafile(jsonfn, schemafn)

Arguments

jsonfn
The JSON file
schemafn
The JSON Schema file This function will check that the supplied files are not empty and are accessible and it will then validate that the JSON file is valid (and well formed) against the supplied schema file. Currently only version 4 of the JSON schema is supported.

Examples

Run this code
## Not run: 
# validate_jsonfile_with_schemafile("data/item-3.json", "data/schema.json")
# ## End(Not run)

Run the code above in your browser using DataLab