简体   繁体   中英

How to send JSON from android to Servlet

I get the JSON of User Info from Facebook on Android. And then send the JSON to my servlet (the platform is GAE).

My question is how to send it properly. Since the JSON could be very long. So far, I have tried this way . But I cannot receive the entire JSON. It always throws

Unterminated string at character 117 of {"music":{"data":[{"created_time":"2011-05-23T16:47:21 0000","id":"176345129540","category":"Musician/band","name":"

And I print the JSON, I find that the JSON is just as above which is been cut.
Thanks in advance.

Http GET可以发送的数据大小可能有限制,请看一下这个问题,然后重写使用Http POST的请求。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM