Fixed error in request Configuration

Fixed error in request Configuration
This commit is contained in:
Giancarlo Panichi 2022-12-15 15:57:54 +01:00
parent a65c09c6ce
commit 18030c6804
1 changed files with 2 additions and 3 deletions

View File

@ -199,9 +199,8 @@ public class UtilityResource {
try{
if (result!=null&&!result.isEmpty()) {
System.out.println("--------result-------->"+result);
JSONObject jsonObj = new JSONObject(result);
JSONArray jsonArray=jsonObj.getJSONArray("result");
JSONArray jsonArray = new JSONArray(result);
for(int i=0;i < jsonArray.length();i++){
//TODO
//id=jsonArray.getJSONObject(i).getString("header");