コード例 #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;
 }