在通过一些现有的库搜索JSON之后,我终于得到了这两个:
- Jackson
- Google GSon
我对GSON有点偏爱,但网络上的字词是GSon天文性能问题(截至2009年9月)。 p>
我继续我的比较;
解决方案我在上周做了这项研究,我最终与同样的2个图书馆。由于我使用的是Spring 3(它在默认的Json视图中采用了Jackson)。 JacksonJsonView '),我更自然的做同样的事情。 2 lib几乎是一样的...最后,他们只是映射到一个json文件! :)
无论如何,你说杰克逊的表现非常出色,对我来说非常重要。该项目也很活跃,你可以从他们的网页看到,这是一个很好的迹象。
After searching through some existing libraries for JSON, I have finally ended up with these two:
- Jackson
- Google GSon
I am a bit partial towards GSON, but word on the net is that GSon suffers from a certain celestial performance issue (as of Sept 2009).
I am continuing my comparison; in the meantime, I'm looking for help to make up my mind.
解决方案I did this research the last week and I ended up with the same 2 libraries. As I'm using Spring 3 (that adopts Jackson in its default Json view 'JacksonJsonView') it was more natural for me to do the same. The 2 lib are pretty much the same... at the end they simply map to a json file! :)
Anyway as you said Jackson has a + in performance and that's very important for me. The project is also quite active as you can see from their web page and that's a very good sign as well.
更多推荐
杰克逊Gson
发布评论