Devesh Omar

Devesh Omar

  • 257
  • 7.4k
  • 8.4m

There is an error in XML document (1, 1).

Feb 14 2014 2:59 AM
Hi I am getting following error during deseralization a JSON data.
"There is an error in XML document (1, 1)."
 
I am unable to get why this error is coming . 
 
If someone has an idea then please let me know.
 
Code :
XmlDocument xmlDataDocument = new XmlDocument();
T returnedXmlClass = default(T);
using (TextReader reader = new StringReader(stringToDeserialize))
{
returnedXmlClass = (T)new XmlSerializer(typeof(T)).Deserialize(reader);
}
I am passing Type as a class. and json here is : 
JSON: {"a":{"a":0.120},"b":{"b":"c\/ Q958\/ Q958\u0\u01\u02\u03 working"}}