Get json array keys in android

前端 未结 5 1172
渐次进展
渐次进展 2020-12-15 09:16
{
    \"204\": {
        \"host\": \"https:\\/\\/abc.com\\/production-source\\/ChangSha\\/2013\\/12\\/02\\/0\\/0\\/A\\/Content\\/\",
        \"timestamp\": 138590988         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 09:35

    Answer given by Mr. K is also right but you can also use jsonObject names() method. please find the sample code

    for(int i = 0; i
                                                            
提交回复
热议问题