Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6 #22 第六次实验 #466

Merged
merged 3 commits into from
Jun 16, 2017
Merged

#6 #22 第六次实验 #466

merged 3 commits into from
Jun 16, 2017

Conversation

1414080903104
Copy link
Contributor

本次实验是参考书本HttpURLConnection来访问的网络,并利用org.json包解析json数据。操作结果如下:
2

提问:老师,不知道为什么,我在用url获取json数据的时候,获取到的字符串格式是null["xxx":"xxx"],就是会有个null前面,可是在原先的json文件内的'['前,我并没有输入任何字符,甚至使用其他网站的公开api获取到的json数据都是这样。我使用的解决方法是将字符串内去掉null,但搞不明白为什么会出现null,而且卡在这里很久了。

@zengsn zengsn merged commit 4a0cadc into hzuapps:master Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants