Skip to content
Permalink
Browse files

Fix incorrect function names in README

  • Loading branch information...
richfitz committed Aug 1, 2019
1 parent 1a25f4a commit 3c90b24ff3be88f5da315098e315a230ac8bd0af
Showing with 21 additions and 9 deletions.
  1. +21 −9 README.md
@@ -8,26 +8,38 @@
<!-- badges: end -->


Validate JSON against a schema using [`is-my-json-valid`](https://github.com/mafintosh/is-my-json-valid) or [`ajv`](https://github.com/epoberezkin/ajv). This package is simply a thin wrapper around these node libraries, using the [V8](https://cran.r-project.org/package=V8) package.
Validate JSON against a schema using [`is-my-json-valid`](https://github.com/mafintosh/is-my-json-valid) or [`ajv`](https://github.com/epoberezkin/ajv). This package is a thin wrapper around these node libraries, using the [V8](https://cran.r-project.org/package=V8) package.

## Installation
## Usage

Directly validate `json` against `schema`

```r
devtools::install_github("ropensci/jsonvalidate")
jsonvalidate::json_validate(json, schema)
```

## Usage
or create a validator for multiple uses

```r
jsonvalidate::validate_json(json, schema)
validate <- jsonvalidate::json_validator(schema)
validate(json)
validate(json2) # etc
```

or
See the [package vignette](https://docs.ropensci.org/jsonvalidate/articles/jsonvalidate.html) for complete examples.

## Installation

Install from CRAN with

```r
validate <- jsonvalidate::validate_json(schema)
validate(json)
validate(json2) # etc
install.packages("jsonvalidate")
```

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

```r
devtools::install_github("ropensci/jsonvalidate")
```

## License

0 comments on commit 3c90b24

Please sign in to comment.
You can’t perform that action at this time.