# just figured out that my dataArray.splti('\n') is the bit adding all the commas, which is messing me up with re-creating the JSON.