拼装json字符串:
StringBuffer json = new StringBuffer();
json.append("{");json.append("[");
json.append("userId:'111',");
json.append("imageName:'222',");
json.append("imagePaht:'333'");
json.append("]");
json.append("}");
System.out.println(json.toString());
结果:{[userId:'111',imageName:'222',imagePaht:'333']}