This works but it’s getting tricky with the large number of value>list mappings. Would the best way to address be to write additional maps for each data element with if data[0] matches to create a new key/value pair for data[1] putting data [2] as value list and so on for each subkey or is there a better way?
i.e.
Value1, secondValue1, thirdValue1, fourthValue1
Value1, secondValue1 third,Value1, fourthValue2
Value1, secondValue2, thirdValue1 fourthValue1