looking for some solutions? You are welcome.

SOLVED: Java - Filtering an array of JSON objects by multiple properties

User:

I have an object stored in Cloudant like this :

{
  "attr1": "value",
  "Objects": [{
      "code": "v1",
      "allowNull": "true",
      "country": "BE"
    },
    {
      "code": "v2",
      "allowNull": "false",
      "country": "EG"
    }
  ]
}

And I want to do a filter criteria by code/country, so the output would be only one object of Objects list.

Is there a way to do that from Cloudant side? Or an efficient way to be done at Java side ?



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent