I am using .NET json parser and i would like to serialize my config file so it is readable instead of
{"blah":"v", "blah2":"v2"}
to something nicer like
{
"blah":"v",
"blah2":"v2"
}
my code is something like
using System.Web.Script.Serialization;
var ser = new JavaScriptSerializer();
configSz = ser.Serialize(config);
using (var f = (TextWriter)File.CreateText(configFn))
{
f.WriteLine(configSz);
f.Close();
}