Skip to content

cran/jsonvalidate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonvalidate

Project Status: Active – The project has reached a stable, usable state and is being actively developed. R-CMD-check 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

About

❗ This is a read-only mirror of the CRAN R package repository. jsonvalidate — Validate 'JSON' Schema. Homepage: https://docs.ropensci.org/jsonvalidate/https://github.com/ropensci/jsonvalidate Report bugs for this package: https://github.com/ropensci/jsonvalidate/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages