@thomas-allibe wrote:
@Yamaeda wrote:
Change the cluster array to a Map and it'll be cleaner. You also don't need the shift register and build array, just concatenate the array on the output (not needed with a map).
Something like this:

Be carefull here, in the author implementation, all key / value pairs are concatenated. There are duplicates for each "signal_generators". In yours, all key value pairs are inserted into 1 map, discarding previously already inserted key values.
@LVEnt it would be easier to help you if we have a JSON example / schema to work with.
Yes, that's something that needs to be considered. You can e.g. concatenate key-value to get more unique key names. I don't quite know what OP was after.