Tuesday, May 8, 2012

Parse Json in Silverlight

            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);

No comments:

Post a Comment