current output gives a full array within arrays.
It would be good to have output that would have an array of hashes, where the segment identifier is the key, for example:
[
{ "UNH" => [["SSDD1"], ["ORDERS", "D", "03B", "UN", "EAN008"]] },
{ "BGM" => [[220], ["BKOD99"], [9]] }
]
current output gives a full array within arrays.
It would be good to have output that would have an array of hashes, where the segment identifier is the key, for example: