validate_json | R Documentation |
Validates JSON
validate_json(json)
json |
character or json object |
logical vector
validate_json('[]') df <- data.frame(id = 1:5, val = letters[1:5]) validate_json( to_json(df) ) validate_json('{"x":1,"y":2,"z":"a"}') validate_json( c('{"x":1,"y":2,"z":"a"}', to_json(df) ) ) validate_json( c('{"x":1,"y":2,"z":a}', to_json(df) ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.