If those are in "ndjson" files or are indeed single records, `ndjson` functions will be a few orders of magnitude faster and will produce perfectly "flat" data frames. It's not intended to be a replacement for `jsonlite` (a.k.a. the quintessential JSON pkg for R) but it's tailor made for making quick work of (potentially deeply nested) ndjson records/files.
On Tue, Oct 18, 2016 at 7:49 AM, K. Elo <mailli...@pp.inet.fi> wrote: > Hi! > > 18.10.2016, 14:38, Abhinaba Roy wrote: >> >> Hi R helpers, >> >> I have json inputs from an app which I want to convert to dataframes. >> Below >> are the two inputs. Can someone help me in converting these to dataframes >> > [...] > > IMHO, the best way is to use the package 'jsonlite', see: > > * https://cran.r-project.org/web/packages/jsonlite/index.html > > A good documentation comes with the package, but the links listed on the > CRAN site provide useful information, too. > > HTH, > Kimmo > > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.