evel mount cat omid ktr tac exceptio ack
- String str = "{\"route\":\"onGift\",\"time\":\"\",\"userId\":\"\",\"userName\":\"\",\"level\":\"1_2_2_2_0\",\"adminType\":0,\"tuserId\":\"\"," +
- "\"tuserName\":\"\",\"tlevel\":\"10_2_2_2_0\",\"roomId\":\"\",\"giftId\":\"001\",\"fcId\":\"0\",\"amount\":\"1\",\"price\":\"0\",\"bean\":\"6546316\"}";
- JSONObject json = null;
- try {
- json = new JSONObject(str);
- } catch (JSONException e) {
- e.printStackTrace();
- }
java 拼接 JSON 串
来源: http://www.bubuko.com/infodetail-2150573.html