I have JSON that is really an array of values but has been encoded as objects, something like this
{ "metrics":
{ "timers" :
{ "foo_timer":
{
"count": 1,
"max": 452603,
"mean": 452603,
"min": 452603
},
"bar_some_other_timer":
{
"count": 1,
"max": 367110,
"mean": 367110,
"min": 367110
}
}
}
}
I can display this in a table by iterating using foreach, but what I really want to do is search for events where max > 400000, and then display it with the name of the timer - so in above that would match foo_timer. The names of the timer can be anything and the order is not guaranteed.
I've tried all sorts today and keep coming up short.
... View more