public class REQ_BODY {
private String KEY_WORD;
private int LOW_PRICE;
private int HIGH_PRICE;
忽略getset
}
REQ_BODY body = new REQ_BODY();
body .setLOW_PRICE("11");
System.out.println(JSONObject.toJSONString(body));
此时,输出的json
LOW_PRICE
HIGH_PRICE 都是默认为0;
慕村225694
相关分类