c# - JSON.NET - JSON being returned as invalid -


i in controller in .net , returning string using json.net serialize data. serialize method returns string, return in controller string directly.

it being returned "'s , \"'s , coming invalid json reason. common "gotchas" associated returning strings of json directly controller might problematic?

this call:

string s = jsonconvert.serializeobject(mylistof<object>, settings);  return s; 

yet comes invalid json. suspect formatting problem. thanks!


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -