Description Usage Arguments Examples
Description
1 | validate_json_with_schemafile(json_string, schemafn)
|
json_string |
The JSON code |
schemafn |
The JSON Schema file This function will check that the supplied schema file is not empty and is accessible and it will then validate that the JSON code is valid (and well formed) against the supplied schema file. |
1 2 3 4 5 | ## Not run:
json_code <- "{\"category\": \"book\", \"price\": 25, \"title\": \"abrakadabra\"}"
validate_json_with_schemafile(json_code, "data/schema.json")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.