杰克逊Gson [英] Jackson Vs. Gson

查看:140
本文介绍了杰克逊Gson的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在通过一些现有的库搜索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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆