1、从HTTP取样器中获取响应结果
#导入JSON包 import org.json.*; #获取响应数据 String response_data = prev.getResponseDataAsString(); #转成JSON JSONObject JsonData = new JSONObject(StrData); #取值 String retMsg= responseJson.getString("retMsg"); int retCode = responseJson.getInt("retCode");