I want to run the the below query to get the particular portion of JSON:
cts:search(/user/userdetail, cts:word-query("test1"))
in java using Marklogic Java API.
Above query gives me perfect result but I want to write code in java using Marklogic java client.
Below is the json file:
{
"user": {
"userdetail": [
{
"username": "test",
"firstName": "testName",
"lastName": "testLastName",
"maritalStatus": "Unmarried",
"password": "testPassword"
},
{
"username": "test1",
"firstName": "testName1",
"lastName": "testLastName2",
"maritalStatus": "married",
"password": "testPassword1"
}
]
}
}