JSONObject jsonParams=new JSONObject({"id":190,"type":"orderPriceOpportunity", "model":"all","amountOfControl":150});
第一种:调用转化成为Long类型
Long id = jsonParams.optLong("id");
第二种: 调用转化为String类型
String str = jsonParams.optString("type");
第三种: 根据你自己需要的类型转化即可