R: validate JSON

validate_json {jsonify} | R 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) ) )

[Package jsonify version 1.1.1 Index]