jsonvalidate
Validate JSON against a schema using is-my-json-valid
or ajv
. This package is simply a thin wrapper around these node libraries, using the V8 package.
Installation
devtools::install_github("ropensci/jsonvalidate")
Usage
jsonvalidate::validate_json(json, schema)
or
validate <- jsonvalidate::validate_json(schema)
validate(json)
validate(json2) # etc
License
MIT + file LICENSE © Rich FitzJohn.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.