Coerce string to JSON

as.json(x)

Arguments

x

string to coerce to JSON

Examples


js <- '{"x":1,"y":2}'
as.json(js)
#> {"x":1,"y":2}