⚠️There's a newer version (1.3.2) of this package. Take me there.

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.

Copy Link

Version

Down Chevron

Install

install.packages('jsonvalidate')

Monthly Downloads

2,326

Version

1.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

June 25th, 2019

Functions in jsonvalidate (1.1.0)