validate_json: validate JSON

View source: R/validate.R

validate_jsonR Documentation

validate JSON

Description

Validates JSON

Usage

validate_json(json)

Arguments

json

character or json object

Value

logical vector

Examples


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 Nov. 10, 2022, 5:34 p.m.