I have a simple method using the NewtonSoft JSON serializer, and I like it (just returns formatted JSON). However, I cannot get it to correctly serialize UTF8 characters (they appear as a question mark ie '?') Which are in the lines inside the object.
The code I use is:
string serialized = JsonConvert.SerializeObject(obj, Newtonsoft.Json.Formatting.Indented, new JsonSerializerSettings { });
joelc source share