powered by
Coerce string to JSON
as.json(x)
string to coerce to JSON
js <- '{"x":1,"y":2}' as.json(js)
Run the code above in your browser using DataLab