json.endArray(); csv.append(separator);
public final String toJSON() { final JsonBuilder jb = new JsonBuilder(); jb.startObject(); jb.appendObjectProperty("lang", this.getLanguage().toString()); jb.appendObjectProperty("type", JavaId.typeToString(this.getType())); jb.appendObjectProperty("qname", this.getQualifiedName()); if(!this.annotations.isEmpty()) { jb.startArrayProperty("a"); for(String a: this.annotations) { jb.appendToArray(a); } jb.endArray(); } jb.endObject(); return jb.getJson(); }
public String toJSON() { final JsonBuilder jb = new JsonBuilder(); jb.startObject(); jb.appendObjectProperty("tracedAt", StringUtil.formatDate(this.t)); jb.appendObjectProperty("count", new Integer(this.counter)); jb.appendObjectProperty("executionId", this.executionId); if(this.appContext!=null) jb.appendObjectProperty("app", JacksonUtil.asJsonString(this.appContext), false); if(this.archiveFileName!=null && this.archiveDigest!=null) { jb.appendObjectProperty("lib", this.archiveDigest); jb.appendObjectProperty("filename", this.archiveFileName); } if(this.junitContexts!=null && this.junitContexts.size()>0) { jb.startArrayProperty("junits"); for(ConstructId junit: this.junitContexts) jb.appendJsonToArray(junit.toJSON()); jb.endArray(); } //if(this.loader!=null) b.append(", \"loader\" : ").append(this.loader.toJSON()).append(""); jb.appendObjectProperty("constructId", c.toJSON(), false); jb.endObject(); return jb.toString(); } public void merge(ConstructUsage _other) {