Learn R Programming

jsonify (version 0.2.1)

as.json: Coerce string to JSON

Description

Coerce string to JSON

Usage

as.json(x)

Arguments

x

string to coerce to JSON

Examples

Run this code
# NOT RUN {
js <- '{"x":1,"y":2}'
as.json(js)

# }

Run the code above in your browser using DataLab