using System.Text; namespace AllocsFixes.JSON { public abstract class JSONNode { public abstract void ToString (StringBuilder stringBuilder, bool prettyPrint = false, int currentLevel = 0); public override string ToString () { StringBuilder sb = new StringBuilder (); ToString (sb); return sb.ToString (); } } }