Open
Description
shift.json
[
{"operation": "shift", "over": "monitor.details", "spec": {"list[*].myname":"list[*].name", "id":"id"}}
]
doc.json
{
"monitor" :{
"name": "hello",
"details" : [
{
"list": [
{
"name": "abc",
"id": "1"
},
{
"name": "xyz",
"id": "2"
}
]
}
]
}
}
Expected Result:-
{
"monitor" :{
"name": "hello",
"details" : [
{
"list": [
{
"myname": "abc",
"id": "1"
},
{
"myname": "xyz",
"id": "2"
}
]
}
]
}
}
But Actual result,
{
"monitor" :{
"name": "hello",
"details" : [
{
"list": [
{
"name": "abc",
"id": "1"
},
{
"name": "xyz",
"id": "2"
}
]
}
]
}
}
Can you please correct my spec.json? Not sure, what I am missing.
Metadata
Assignees
Labels
No labels
Activity