Validate JSON against a schema using is-my-json-valid
or ajv.
This package is a thin wrapper around these node libraries, using the V8 package.
Directly validate json against schema
jsonvalidate::json_validate(json, schema)or create a validator for multiple uses
validate <- jsonvalidate::json_validator(schema)
validate(json)
validate(json2) # etcSee the package vignette for complete examples.
Install from CRAN with
install.packages("jsonvalidate")Alternatively, the current development version can be installed from GitHub with
devtools::install_github("ropensci/jsonvalidate")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.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.