Click here to Skip to main content
15,889,200 members
Articles / Programming Languages / Javascript

Deserialize JSON with C#

13 Jun 2011CPOL 2.6K   2
This elicits an InvalidCastException using Viz Studio Express 10 (WPDTRTMRel 30319.174) with Newtonsoft.Json (circa April 2011):Test anotherObj = (Test)Newtonsoft.Json.JsonConvert.DeserializeObject("{\"field1\":\"one\", \"field2\":\"two\"}");public class Test{ public string...
Only logged in members can view this content

Please go to the Javascript Table of Contents to view the list of available articles in this section.
Closed because the post is not clear, or is incomplete and has not been phrased in a way that allows it to be fully understood.. Reported by #realJSOP on Tuesday, June 14, 2011 2:02am