Esempio n. 1
0
        private static string GetJSONFromXML(string XMLValue, IDictionary <string, string> metaData)
        {
            string          JSONString = "";
            TransformToJSON xmltojson  = new TransformToJSON();

            JSONString = xmltojson.ProcessXMLToJSON(XMLValue, metaData);
            return(JSONString);
        }
Esempio n. 2
0
        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);
        }