Learn R Programming

toolbox (version 0.1.1)

jsonStr: Format data as a JSON object (like this: "x": "120").

Description

Format data as a JSON object (like this: "x": "120").

Usage

jsonStr(name, val)

Value

A string, data formatted as a JSON object.

Arguments

name

A string, the name of the JSON entry

val

A string, the value to associate with the JSON entry.

Examples

Run this code
jsonStr(name = "var1", val = "Blue")

Run the code above in your browser using DataLab