Open sureshbabuinfo opened 4 years ago
Is there any way I can get which property of input is mapped to the output property as a key value pair. The spec itself has that but it is nested and I need it in a different format. Also I don't care about the values.
For Ex. Input:
{ "rating": { "primary": { "value": 3 }, "quality": { "value": 3 } } }
Spec:
[ { "operation": "shift", "spec": { "rating": { "primary": { "value": "Rating" }, "*": { "value": "SecondaryRatings.&1.Value" } } } } ]
Ouput
{ "rating.primary.value": "Rating", "rating.quality.value": "SecondaryRatings.quality.Value" }
Is there any way I can get which property of input is mapped to the output property as a key value pair. The spec itself has that but it is nested and I need it in a different format. Also I don't care about the values.
For Ex. Input:
Spec:
Ouput