How do I loop through this json with PHP and only extract/print the 3 digit numbers under "DataPoints"?
My goal is to at some point take those 3 digit numbers and then add them all up and get the average.
[
{
"MetricName": "payment_cnt.STATE.1s",
"Tags": {
"environment": "P",
"pymtver": "2",
"dataset": "tpv"
},
"DataPoints": [
[
1569711341,
236
],
[
1569711342,
205
],
[
1569711343,
205
],
]
]
}
]