Skip to content
✔️⁉️ Validate JSON
R JavaScript Makefile Shell
Branch: master
Clone or download
r-ash Merge pull request #27 from ropensci/i25
i25: Allow validation of a subset of the data
Latest commit 9cc5c87 Aug 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
inst
js Support for validating against with a fraction of data Aug 22, 2019
man-roxygen Support for validating against with a fraction of data Aug 22, 2019
man Support for validating against with a fraction of data Aug 22, 2019
tests Test query validation Aug 22, 2019
vignettes Tidy up vignette Aug 1, 2019
.Rbuildignore devtools changes Jun 25, 2019
.gitattributes
.gitignore devtools changes Jun 25, 2019
.travis.yml Try newer ubuntu Aug 5, 2019
CODE_OF_CONDUCT.md Add CoC Jul 20, 2018
DESCRIPTION
LICENSE
Makefile
NAMESPACE Initial import Mar 31, 2016
NEWS.md
README.md Fix incorrect function names in README Aug 1, 2019
update_web.sh Support for the website Apr 1, 2016

README.md

jsonvalidate

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Build Status codecov.io

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.

Usage

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) # etc

See the package vignette for complete examples.

Installation

Install from CRAN with

install.packages("jsonvalidate")

Alternatively, the current development version can be installed from GitHub with

devtools::install_github("ropensci/jsonvalidate")

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.

ropensci_footer

You can’t perform that action at this time.