Source=https://jsonformatter.org/e038ec The above is nested json. I want the output to be as below dataElements.name,dataElements.id,categoryOptionCombos.name,categoryOptionCombos.id Any help in r? *Best Regards,* *FRED KWEBIHA* *+256-782-746-154* [[alternative HTML version deleted]]
Cross-posting is deprecated on r-help. Please don't do it again. And it was already answered on StackOverflow. -- David. On 9/15/20 1:13 PM, Fred Kwebiha wrote:> Source=https://jsonformatter.org/e038ec > > The above is nested json. > > I want the output to be as below > dataElements.name,dataElements.id,categoryOptionCombos.name,categoryOptionCombos.id > > Any help in r? > *Best Regards,* > > *FRED KWEBIHA* > *+256-782-746-154* > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.
Hi Fred, I believe the preferred package is jsonlite: https://cran.r-project.org/package=jsonlite https://jeroen.cran.dev/jsonlite/index.html HTH, Bill. W. Michels, Ph.D. On Tue, Sep 15, 2020 at 1:48 PM Fred Kwebiha <kwebihaf at gmail.com> wrote:> > Source=https://jsonformatter.org/e038ec > > The above is nested json. > > I want the output to be as below > dataElements.name,dataElements.id,categoryOptionCombos.name,categoryOptionCombos.id > > Any help in r? > *Best Regards,* > > *FRED KWEBIHA* > *+256-782-746-154* > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.