private static void RecursiveDictionaryToString(JSONObject obj,
StringBuilder sb, int level)
{
foreach (KeyValuePair<string, JSONObject> kvp in obj.Dictionary)
{
sb.Append(' ', level * 2);
sb.Append(kvp.Key);
sb.Append(" => ");
RecursiveObjectToString(kvp.Value, sb, level);
sb.AppendLine();
}
}