用JsonObject接收 大多数时候我们直接用实体Bean接收 但是有时候比如json的键包含-这种字符 那么我们不好命名 那么可以这样 try { String string = ""; JSONObject jsonObject = new JSONObject(string); Object object = jsonObject.get("user-id"); } catch (JSONException e) { e.printStackTrace(); }