I have an array of objects and I'm trying to find the value in the object and remove the value has been found in the exist object. For example,
Current JSON Object:
exist=[{"x":6811,"y":15551,"a":["aa","ab","ac"]},{"x":6811,"y":15552,"a":["bb"]},{"x":6812,"y":15551,"a":["aa","cc"]}]
I want to find the "a" Key with value aa
The last result is
exist= [{"x":6811,"y":15552,"a":["bb"]}]
found= [{"x":6811,"y":15551,"a":["aa","ab","ac"]},{"x":6812,"y":15551,"a":["aa","cc"]}]
You can do it without underscore: