data.table
flatten.Rd
Flatten a character vector of individual JSON lines into a data.table
flatten(x, cls = c("dt", "tbl"))
x | character vector of individual JSON lines to flatten |
---|---|
cls | the package uses |
data.table
or tbl
flatten('{"top":{"next":{"final":1,"end":true},"another":"yes"},"more":"no"}')#> more top.another top.next.end top.next.final #> 1: no yes TRUE 1