javascript - json.net serialization error using custom objects -


i getting error when calling asp.net mvc action method returning jsonnetresult. using following code that.

this see in response body. reason struggling < , > text.

{     "archivedemailsdata":[           {             "id":294455,             "date":"2009-09-10t15:20:00",             "subject":"testing fix in 2.20.8.0 - quotes or single 'quote' , char < and="">"           }] } 

original text of object subject "testing fix in 2.20.8.0 - quotes or single 'quote' , char < , >" string

using angularjs make call same thing when using jquery.

your json invalid , should following:

{     "archivedemailsdata": [         {             "id": 294455,             "date": "2009-09-10t15:20:00",             "subject": "testing fix in 2.20.8.0 - quotes or single 'quote' , char < , >"         }     ] } 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -