开发者

Best practice for using JSON and REST in an Android application?

Last year I started to develop an Android application that uses JSON objects that are retrieved from a RESTful web service interface. In those days, I couldn't find a library or framework that could be used to parse JSON objects.

Are there any improvements over the last year? And is there a best practice how to h开发者_开发技巧andle JSON in combination with RESTful interfaces in an Android application?


There are a number of JSON parsers out there which can be used in Android. Personally, I find Google's Gson works very nicely. I have also seen great results from Jackson


I know this is a very old question but I have developed an open-source eclipse plugin for Android called Mechanoid that can generate REST clients using an easy to learn DSL.

It's still alpha but useful already and could turn out to be great if more folks took interest!

http://robotoworks.com/mechanoid-plugin/service-client-dsl/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜