protected virtual void Dispose(bool disposing) { if (disposing) { if (this is JSONObject) { add(!empty, "}", -1); } else if (this is JSONArray) { add(!empty, "]", -1); } if (parent != null) { parent.isCurrent = true; } parent = null; } }
protected internal JSONArray(JSONElement par, string key) : base(par, key) => addKeyText(key, "[", 1);
protected internal JSONObject(JSONElement par, string key) : base(par, key) => addKeyText(key, "{", 1);