Im making good progress leaning to use using LookupRecord Processor.
I have it working so that I know how to turn
[{"key": "value1"}, {"key":"value2"}, {"key":"value3"}]
Into
[{"key": "value1","enhanced":1}, {"key":"value2","enhanced":2},
{"key":"value3","enhanced":3}]
BUT
What if you have inner records? Is that supported? How?
What if you have
{"foo":"bar", "outerrecord":[{"key": "value1"}, {"key":"value2"},
{"key":"value3"}]}
And want to turn it into
{"foo":"bar", "outerrecord":[{"key": "value1","enhanced":1},
{"key":"value2","enhanced":2}, {"key":"value3","enhanced":3}]}
How do you specify your lookup key is outerrecord/key, but the array of records
is actually located at /outerrecord. Is there some kind of path magic? Or is
there some kind of flow magic where you have to separate outerrecord into a
separate flow file, and then (?somehow?) glue it back in after its processed?
Thanks!