예제 #1
0
 public JsonArrayBuilder addJson(Action1<JsonBuilder> doForJson) {
   JsonBuilder jsonBuilder = getInnerJsonBuilder();
   doForJson.call(jsonBuilder);
   jsonBuilder.close();
   json.append(divider);
   return this;
 }
예제 #2
0
 public JsonArrayBuilder addArray(Action1<JsonArrayBuilder> doForArray) {
   JsonArrayBuilder arrayBuilder = getInnerArrayBuilder();
   doForArray.call(arrayBuilder);
   arrayBuilder.close();
   json.append(divider);
   return this;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }