R/to_json.R
as.json.Rd
Coerce string to JSON
as.json(x)
string to coerce to JSON
js <- '{"x":1,"y":2}' as.json(js) #> {"x":1,"y":2}