json2df: Convert a JSON string into a data frame

Description Usage Arguments Examples

View source: R/df2json.R

Description

Convert a JSON string into a data frame

Usage

1
  json2df(json)

Arguments

json

input json object

Examples

1
2
3
library(df2json)
json <- "[{\"a\":1, \"b\":2},{\"a\":3,\"b\":4}]"
json2df(json)

Example output

Loading required package: rjson
  a b
1 1 2
2 3 4

df2json documentation built on May 2, 2019, 1:03 p.m.