This handler assumes that the first row of values in the CSV input is a row containing the column names. An exception will be raised to stop a potential unsuccesful conversion if the first row has any blank values in it, if the first row has duplicate values in it, or if a particular row has more values than the first row.
Below is an example of a CSV input string and the corresponding JSON output generated by this handler.
CSV Output a,b,c,d,e animal,boat,car,, ,,cat,dog, ,,,,eel
JSON Output { "table" : [ { "a" : "animal", "b" : "boat", "c" : "car" }, { "c" : "cat", "d" : "dog" }, { "e" : "eel" } ] }
Name | Description |
---|---|
CSV | The CSV String to be converted to JSON |
Name | Description |
---|---|
CSV |
Name | Description |
---|---|
JSON | A JSON String that was converted from the given CSV |
UtilityCsvToJsonV1 (2012-05-31)
Learn more about the Kinetic Data Enterprise Workflow Platform Check it out