I have a JSONArray
containing JSONObjects
like this {firstname:'John', lastname:'Doe'}
.
Is there a way to select all JSONObjects
having firstname == 'John'
directly or the only way is to loop the array, test the field firstname and save all matching objects in another array?
Thanks