C# Class GeositeFramework.Helpers.CsvHelper

Afficher le fichier Open project: CoastalResilienceNetwork/GeositeFramework

Méthodes publiques

Méthode 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

Méthode Description
ArrayToRow ( IEnumerable rowValues ) : string
GetFormattedValue ( JToken val ) : string

Method Details

JsonToCsv() public static méthode

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]
Résultat string