Android - de-facto implementation of REST/JSON cli

2019-03-02 19:00发布

I'm new to Android development and wondering if there's a de-facto solution for REST/JSON client implementation. It looks like most of Android developers write their own implementations based on Apache HTTP client + GSON or org.json. I don't like the idea of writing all this code manually - is there anything I can use not to reinvent the bicycle?

2条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-03-02 19:16

For Android's HTTP Clients, you can check out this blog post http://android-developers.blogspot.com/2011/09/androids-http-clients.html

Android has integrated org.json, but you can use other JSON parser, such as GSON or Jackson.

查看更多
叛逆
3楼-- · 2019-03-02 19:23

After 4 hours of looking for the answers, I decided to use CRest - http://crest.codegist.org/index.html. Seems to be what I was looking for.

Update

After 1.5 years, I still think it's really good solution.

查看更多
登录 后发表回答