Learn R Programming

jsonify (version 1.2.2)

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

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

Run the code above in your browser using DataLab