hillalex / jsonvalidate

:heavy_check_mark::interrobang: Validate JSON

Home Page:https://docs.ropensci.org/jsonvalidate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

:heavy_check_mark::interrobang: Validate JSON

https://docs.ropensci.org/jsonvalidate

License:Other


Languages

Language:R 87.3%Language:JavaScript 10.2%Language:Makefile 2.2%Language:Shell 0.3%