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
Post a Comment