public JsonObject WithObject() { var jsonObject = new JsonObject(); this.Values.Add(jsonObject); return jsonObject; }
public JsonObject ContainingObject(string childName) { var jsonObject = new JsonObject(childName); this.values.Add(jsonObject); return jsonObject; }
public JsonObject WithObject(string elementName) { var newElement = new JsonObject(elementName); this.objects.Add(newElement); return newElement; }
public JsonCollection WithObject(JsonObject jsonObject) { this.Values.Add(jsonObject); return this; }
/// <summary> /// Adds the given object as child and returns reference of this instance. /// </summary> /// <param name="jsonObject">The json object which is part of this instance.</param> /// <returns>Reference of this object, not of the added child!</returns> public JsonObject ContainingObject(JsonObject jsonObject) { this.values.Add(jsonObject); return this; }