JSON array get length

后端 未结 7 952
长情又很酷
长情又很酷 2021-01-17 08:25

I can\'t get the array length of the JSON array. when I using length(); method it is not working, it show as red underline in Netbeans

this is the source code

相关标签:
7条回答
  • 2021-01-17 08:54

    Check you have the line:

     import org.json.JSONArray;
    

    at the top of your source code

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