Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All,

I am not able to read Json Data which i am getting from my Service which is WCF Rest Service.

string temp= JsonConvert.SerializeObject(öbj);

String which i got in temp looks like



"{\"MyList\":[{\"RowNumber\":9,\"intOfferId\":9,\"nvcrMerchantName\":\"Courtyard Marriot\"},{\"RowNumber\":1,\"intOfferId\":1,\"nvcrMerchantName\":\"Dominos\"]}}]}"


Thanks in Advance.
Posted
Comments
JoCodes 25-Apr-15 10:40am    
any error you are getting?
JoCodes 25-Apr-15 10:53am    
Can you post the code you tried?

1 solution

Hi,

Please post more of your code.
It seems like that your json is wrongly formatted.
I also recommend to test your json structure mapping on this page:
It generates C# classes from json (I suppose that you also know C# if you use Json .NET library)

http://json2csharp.com/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900