Open ddy123 opened 4 months ago
Why is the key obtained from "&2" not "rating" #1258 Because the node is 3 levels above.
The key obtained from "&1" is the "primary" and "quality" key Are you sure?
[
{
"operation": "shift",
"spec": {
"rating": { // &3, three levels above
"*": { // primary or quality (&2, two levels above)
"*": { // value (&1, one level above)
"$": "&3" // &3 starts here and moves up the tree nodes by two levels
}
}
}
}
}
]
The key obtained from "&1" is the "primary" and "quality" key Why are these two different
Why is the key obtained from "&2" not "rating" #1258 Because the node is 3 levels above.
The key obtained from "&1" is the "primary" and "quality" key Are you sure?
[ { "operation": "shift", "spec": { "rating": { // &3, three levels above "*": { // primary or quality (&2, two levels above) "*": { // value (&1, one level above) "$": "&3" // &3 starts here and moves up the tree nodes by two levels } } } } } ]
Please look above
thanks,I got it.The JSON tree is constructed by the ”spec“,not the "input".
I still got it wrong. It's based on the current layer and iterating upwards
The key obtained from "&1" is the "primary" and "quality" key