JsonArray-Example:
[
{"name":"table","type":"table","reportId":7,"componentId":12,"width":0,"height":0,"dataType":"DEFAULT"},
{"name":"chart","type":"chart","reportId":7,"componentId":13,"width":0,"height":0,"dataType":"DEFAULT"}
]
I have to search JsonObject with Key(name,type),if jsonObject exist with the key want to either update or delete the jsonObject from array.
Normal Solution:iterate each JsonObject individually,look for the key and perform the operation.
P.S. I want to code all this logic in java not javascript.