Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是所有这些 android 编程的新手,我想知道如何从这个网站解析数据:http: //ec2-54-213-155-95.us-west-2.compute.amazonaws.com/notices .php?
你似乎有从0到的钥匙17。所以总共18个键。您可以尝试获取字符串数组中的值。
0
17
String [] str = new String[18]; for ( int i = 0; i < 18; i++ ){ str[i] = json.getString(String.valueOf(i)); // Keys are string }
这json是您收到的 JSON 对象。
json