Validate a single json against a schema. This is a convenience
wrapper around json_validator(schema)(json)
json_validate(json, schema, verbose = FALSE, greedy = FALSE,
error = FALSE)
Contents of a json object, or a filename containing one.
Contents of the json schema, or a filename containing a schema.
Be verbose? If TRUE
, then an attribute
"errors" will list validation failures as a data.frame
Continue after the first error?
Throw an error on parse failure? If TRUE
,
then the function returns NULL
on success (i.e., call
only for the side-effect of an error on failure, like
stopifnot
).