use of groovy.json.JsonBuilder in project page-factory-2 by sbtqa.
the class BodyArray method toString.
/**
* @return JSON array fragment
*/
@Override
public String toString() {
if (array.isEmpty()) {
return "[]";
}
JsonBuilder builder = new JsonBuilder();
builder.call(array);
return builder.toString();
}
Aggregations