R
Rajiv Verma
Hi,
I am using .NET 3.5 JSON deserializer. When I am passing my JSON server
response to DataContractJsonSerializer,
DataContractJsonSerializer ser = new
DataContractJsonSerializer(typeof(Envelope));
It is throwing an exceptions "Expecting state 'Element'.. Encountered 'Text'
with name '', namespace ''. error?"
I am not sure what is going wrong, I am passing it a valid JSON string and
string in the error message ", namespace " is not part of JSON string, I
don't know why is deserializer throwing this error. And what is about
"Expecting state" in JSON deserializer.
Please help me out, thanks in advance.
I am using .NET 3.5 JSON deserializer. When I am passing my JSON server
response to DataContractJsonSerializer,
DataContractJsonSerializer ser = new
DataContractJsonSerializer(typeof(Envelope));
It is throwing an exceptions "Expecting state 'Element'.. Encountered 'Text'
with name '', namespace ''. error?"
I am not sure what is going wrong, I am passing it a valid JSON string and
string in the error message ", namespace " is not part of JSON string, I
don't know why is deserializer throwing this error. And what is about
"Expecting state" in JSON deserializer.
Please help me out, thanks in advance.