Converting XML to JSON using R

json, r, xml

Solution

You can convert XML to a `list` using the `xmlToList()` function from the XML package, and you can convert a `list` to JSON using the `toJSON()` function from the RJSONIO package.

Problem

Is there a way to convert between XML & JSON in R Studio? I've looked at XML & RJSONIO packages in R but didn't find a function to do what I'm looking for.

Original source

Related problems