validate_json_schema: Validate string of JSON against specified schema.

View source: R/json.R

validate_json_schemaR Documentation

Validate string of JSON against specified schema.

Description

This check will only be done if environmental variable VALIDATE_JSON_SCHEMAS is set to true. If VALIDATE_JSON_SCHEMAS is not true then this always returns TRUE.

Usage

validate_json_schema(json, schema, query = NULL)

Arguments

json

The JSON to validate.

schema

Name of the schema to validate against.

Value

True if JSON adheres to schema.


mrc-ide/hintr documentation built on April 25, 2024, 11:58 p.m.