{
"snippet-format": "empty-snippet",
"total": 361,
"start": 1,
"page-length": 5,
"selected": "include",
"results": [
{
"index": 1,
"uri": "/DEV/xyz-xyzRecord/OS1.json",
"path": "fn:doc("/SIT1/xyz-xyzRecord/AB1.json")",
"score": 0,
"confidence": 0,
"fitness": 0,
"href": "/v1/documents?uri=%2FDEV%2FIxyz-xyzRecord%2FOS1.json&database=data-hub-DEV",
"mimetype": "application/json",
"format": "json",
"matches": null,
"extracted": {
"kind": "array",
"content": [
{
"xyz": "AB1"
}
]
}
}
]
}
Expected output is
[
{
"xyz": "AB1"
}
]
2
Answers
You can use the following shift transformation spec
Another option might be
@Barbaros But what if multiple objects
Spec tried
Below output
But Expected