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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -