validate_json: validate JSON

Description Usage Arguments Value Examples

View source: R/validate.R

Description

Validates JSON

Usage

1

Arguments

json

character or json object

Value

logical vector

Examples

1
2
3
4
5
6
7
8
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) ) )

jsonify documentation built on July 2, 2020, 2:55 a.m.