C# Class GeositeFramework.Helpers.CsvHelper

Show file Open project: CoastalResilienceNetwork/GeositeFramework

Public Methods

Method Description
JsonToCsv ( string json ) : string

Takes valid JSON array and returns simple CSV representation of the data. Leans on the fact that any escapable characters are already quoted within the json as strings.

Private Methods

Method Description
ArrayToRow ( IEnumerable rowValues ) : string
GetFormattedValue ( JToken val ) : string

Method Details

JsonToCsv() public static method

Takes valid JSON array and returns simple CSV representation of the data. Leans on the fact that any escapable characters are already quoted within the json as strings.
public static JsonToCsv ( string json ) : string
json string String representation of an Array [file] of Arrays [rows]
return string