Android error on parse json when array key have more length

前端 未结 1 717
不思量自难忘°
不思量自难忘° 2020-12-22 05:55

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\'=&         


        
1条回答
  •  囚心锁ツ
    2020-12-22 06:23

    Your result is contian int value...try this

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

    0 讨论(0)
提交回复
热议问题