Skip to content Skip to sidebar Skip to footer

Android Error On Parse Json When Array Key Have More Length

i'm trying to parse json array response from server. for example i can simply parse this response : echo json_encode(['result' => 0,'h'=>1,'m'=>2]); but for parse this js

Solution 1:

Your result is contian int value...try this

int result = jsonObject.getInt("result");

Post a Comment for "Android Error On Parse Json When Array Key Have More Length"