private static string GetJSONFromXML(string XMLValue, IDictionary <string, string> metaData) { string JSONString = ""; TransformToJSON xmltojson = new TransformToJSON(); JSONString = xmltojson.ProcessXMLToJSON(XMLValue, metaData); return(JSONString); }
private static string GetJSONFromCSV(string CSVValue, IDictionary <string, string> metaData) { string JSONString = ""; bool isFirstRowHeader = false; bool.TryParse(metaData["isFirstRowHeader"], out isFirstRowHeader); TransformToJSON csvtojson = new TransformToJSON(); JSONString = csvtojson.ProcessCSVFile(CSVValue, isFirstRowHeader, metaData); return(JSONString); }