This is the basic structure of my input:
{ "a": "a1", "b": { "a1": { "value": 3 }, "a2": { "value": 3 } } }
This is how I need my output to look:
{ "c": { "a1": { "value": 3 } } }
So I need to use the value of a to match with a key in b, and copy that whole JSONObject to a different key c. Nothing I've tried seems to work, and I'm new to jolt, so any help would be appreciated!
This is the basic structure of my input:
{ "a": "a1", "b": { "a1": { "value": 3 }, "a2": { "value": 3 } } }
This is how I need my output to look:
{ "c": { "a1": { "value": 3 } } }
So I need to use the value of a to match with a key in b, and copy that whole JSONObject to a different key c. Nothing I've tried seems to work, and I'm new to jolt, so any help would be appreciated!