1.java使用json传输数据:
JSONObject jsonObj = new JSONObject();
jsonObj.put("iValue",123);
jsonObj.put("dValue",123.123);//int
jsonObj.put("sValue","hello world!");//int //error:grid_Size
int iValue;
double dValue;
String sValue;
iValue = jsonObj.getInt("iValue");
dValue = jsonObj.getDouble("dValue");
sValue = jsonObj.getString("sValue");