So I'm trying to clean some data in R, Im not very experinced with R. What I would like to do is Get a certain peice of Data from a JSON and store it into a Varaible The JSON is very large and messy, I tried using JSON Lite and using the $ Variable selector but couldnt find a way to grab the specific peice of Data I needed, Theres very little information and resource out there on JSON Manipulation in R
JSON File :
{
"error": false,
"msg": "all countries and population 1961 - 2018",
"data": [
{
"country": "Arab World",
"code": "ARB",
"populationCounts": [
{
"year": 1960,
"value": 92197753
},
{
"year": 1961,
"value": 94724510
},
{
"year": 1962,
"value": 97334442
}
]
}
]
}
So lets say I want to gather the 1962 Value into a Variable, what would be the best way I do that
Any suggestion would be a huge help