开发者

How to send JSON from android to Servlet

开发者 https://www.devze.com 2023-03-22 21:34 出处:网络
Iget the JSON of User Info from Facebook on Android. And then send the JSON to my servlet (the platform is GAE).

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 prope开发者_运维技巧rly. 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.


There might be a limit on the size of data you can send by Http GET, take a look at this question and rewrite your request to use Http POST.

0

精彩评论

暂无评论...
验证码 换一张
取 消