Charnjeet Singh
Charnjeet Singh

Reputation: 3107

How to parse JSON which Serialize by JsonConvert.SerializeObject

i am using JsonConvert.SerializeObject and convert object to json but getting json like as :

"{\"ID\":5,\"name\":\"czxc\","createdOn\":\"2015-01-17T11:33:39.9213672+05:30\"}"

Can any one help me how to Parse this json to right format like as :

"{"ID":5,"name":"czxc","createdOn":"2015-01-17T11:33:39.9213672+05:30"}"

using c#.Please help me.

Upvotes: 0

Views: 354

Answers (1)

Richard Schneider
Richard Schneider

Reputation: 35477

The backslashes \ are added by the Visual Studio Debugger, they are not in the actual string.

Upvotes: 3

Related Questions