xDev API Java example for querying array of objects using find
Posted by: Arul�* velan
Date: April 07, 2022 09:21AM

Requesting help in constructing the find query syntax on the element empID for the below json having array of objects using connector/J API

Below is not working. How to use the array of objects key in find method?

find("employeedetails.empID = :ID").bind(ID, "123").execute();

Data in DB:
-----------
{
"employeedetails": [
{
"empID": "123",
"empName": "name1"
},
{
"empID": "456",
"empName": "name2"
}
]
}

Options: ReplyQuote


Subject
Written By
Posted
xDev API Java example for querying array of objects using find
April 07, 2022 09:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.