Hello.
I have a JSON file the looks roughly like this, containing a list of un-named values:{ > { “UniqueID”:123446,
“Dealership”:”Dan’s Dodge”,
“Owner”:”Dan”,
“BestSelling”:
e “blue”,
“red”,
“blue”,
...
“red”
]
...
“Telephone”:”411”
},
...
]
}
My first JSONFragmenter feeds two workflows: the first workflow captures the named values (including “UniqueID”), and the second workflow immediately discards everything but “UniqueID” and the JSON from the first JSONFragmenter and then uses a JSONFragmenter to turn the JSON list into Features. Finally, a FeatureJoiner that adds to each newly-minted Feature an Attribute containing the appropriate name for its unnamed value. Now it’s time to FeatureMerge the new Attributes back into the first workflow by matching on “UniqueID”.
Alas, the newly-assigned names are stored in the same Attribute of each JSON-list Feature. So, after FeatureMerger merges the first Feature, the transformer’s Conflict Resolution decides whether to preserve the Attribute in the Requestor, or to overwrite it with each remaining Feature from the Supplier.
Is there a way, after turning the new Features into an FME list, to rename each Attribute (e.g. concatenate json_index from the JSON list to the Attribute name) while sending the Feature to a FeatureMerger or ListBasedFeatureMerger?