@@ -341,9 +341,9 @@ public String getJsonStr(String varName) {
341
341
try {
342
342
if (jsonResponse != null ) {
343
343
if (jsonResponse .has (varName ))
344
- jsonstr = jsonResponse .getString (varName );
344
+ jsonstr = jsonResponse .get (varName ). toString ( );
345
345
else if (jsonResponse .length () == 1 && jsonResponse .has ("" ))
346
- jsonstr = jsonResponse .getString ("" );
346
+ jsonstr = jsonResponse .get ("" ). toString ();
347
347
}
348
348
else {
349
349
errorCode = RESPONSE_ERROR_CODE ;
@@ -375,10 +375,10 @@ public <T extends GXXMLSerializable> T getBodyObj(String varName, Class<T> sdtCl
375
375
if (jsonResponse != null ) {
376
376
Boolean dSuccess = false ;
377
377
if (jsonResponse .has (varName ) && jsonResponse .length () == 1 ) {
378
- dSuccess = sdt .fromJSonString (jsonResponse .getString (varName ), null );
378
+ dSuccess = sdt .fromJSonString (jsonResponse .get (varName ). toString ( ), null );
379
379
}
380
380
else if (jsonResponse .length () == 1 && jsonResponse .has ("" )) {
381
- dSuccess = sdt .fromJSonString (jsonResponse .getString ("" ), null );
381
+ dSuccess = sdt .fromJSonString (jsonResponse .get ("" ). toString ( ), null );
382
382
}
383
383
else if (jsonResponse .length ()>= 1 ) {
384
384
dSuccess = sdt .fromJSonString (httpClient .getString (), null );
@@ -462,10 +462,10 @@ public <T extends Object> GXSimpleCollection<T> getBodyCollection(String varName
462
462
}
463
463
try {
464
464
if (jsonResponse .has (varName )) {
465
- coll .fromJSonString (jsonResponse .getString (varName ), null );
465
+ coll .fromJSonString (jsonResponse .get (varName ). toString ( ), null );
466
466
}
467
467
else if (jsonResponse .length () == 1 && jsonResponse .has ("" )) {
468
- coll .fromJSonString (jsonResponse .getString (varName ), null );
468
+ coll .fromJSonString (jsonResponse .get (varName ). toString ( ), null );
469
469
}
470
470
}
471
471
catch (JSONException e ) {
0 commit comments