Consider the following array:
[{
"activity" : "Hiking",
"level" : "8.5"
},
{
"activity" : "Swimming",
"level" : "-3.2"
}]
I want to loop through the JSON data and identify the object with the lowest value for level. In this example, I should retrieve
{
"activity" : "Swimming",
"level" : "-3.2"
}