I am in a controller in .net and returning a string using json.net to serialize data. the serialize method returns a string, so I just do a return in the controller for that string directly.
It is being returned with "'s and \"'s and thus coming back as invalid JSON for some reason. What are some common "gotchas" associated with returning strings of JSON directly from a controller that might be problematic?
This is the call:
String s = JsonConvert.SerializeObject(myListOf<Object>, settings);
return s;
yet it comes back as invalid JSON. I suspect a formatting problem. thanks!