I have a JSON file that is being generated from an API and stored into a variable myJson
that looks like this:
{
"results": [
{
"term": "A",
"count": 1569
},
{
"term": "B",
"count": 1375
},
{
"term": "C",
"count": 1372
}
]
}
Is there any approach to add up all of the numerical values in the "count" entry and store it as a string into a variable?
So: stringVariable = 1569 + 1375 + 1372
Note: This is just a small snippet of a giant JSON file so I believe will need a formula of some sort.
Thanks!!