Skip to contents

Is JSON file or text valid?

Usage

json_validate(x)

Arguments

x

chr JSON string or file path

Value

lgl Whether JSON is valid

Examples

json_validate('{"done" : 1}')
#> [1] TRUE