string jsonstring = "";//Must be a Json String
byte[] inputarray = Encoding.UTF8.GetBytes(jsonstring);
MemoryStream stream = new MemoryStream(inputarray);
StreamReader reader = new StreamReader(stream);
XmlDictionaryWriter xmlData = JsonReaderWriterFactory.CreateJsonWriter(reader.BaseStream);
byte[] inputarray = Encoding.UTF8.GetBytes(jsonstring);
MemoryStream stream = new MemoryStream(inputarray);
StreamReader reader = new StreamReader(stream);
XmlDictionaryWriter xmlData = JsonReaderWriterFactory.CreateJsonWriter(reader.BaseStream);
No comments:
Post a Comment