public JsonArrayBuilder addJson(Action1<JsonBuilder> doForJson) { JsonBuilder jsonBuilder = getInnerJsonBuilder(); doForJson.call(jsonBuilder); jsonBuilder.close(); json.append(divider); return this; }
public JsonArrayBuilder addArray(Action1<JsonArrayBuilder> doForArray) { JsonArrayBuilder arrayBuilder = getInnerArrayBuilder(); doForArray.call(arrayBuilder); arrayBuilder.close(); json.append(divider); return this; }
public JsonBuilder addJson(String key, Action1<JsonBuilder> doForJson) { json.append("\"").append(key).append("\"").append(split); JsonBuilder jsonBuilder = getInnerJsonBuilder(); doForJson.call(jsonBuilder); jsonBuilder.close(); json.append(divider); return this; }
public JsonBuilder addArray(String key, Action1<JsonArrayBuilder> doForArray) { json.append("\"").append(key).append("\"").append(split); JsonArrayBuilder arrayBuilder = getInnerArrayBuilder(); doForArray.call(arrayBuilder); arrayBuilder.close(); json.append(divider); return this; }