杰克逊 VS.格森 [英] Jackson Vs. Gson
问题描述
在搜索了一些现有的 JSON 库后,我最终得到了这两个:
After searching through some existing libraries for JSON, I have finally ended up with these two:
- 杰克逊
- Google GSon
我有点偏向 GSON,但网上有消息称 GSon 受到某种天体性能的影响问题(截至 2009 年 9 月).
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.
推荐答案
我上周进行了这项研究,最终得到了相同的 2 个库.因为我使用的是 Spring 3(在其默认的 Json 视图中采用 Jackson 'JacksonJsonView') 对我来说做同样的事情更自然.2个lib几乎相同......最后它们只是映射到一个json文件!:)
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! :)
无论如何,正如你所说,Jackson 在表现上取得了 +,这对我来说非常重要.从他们的网页可以看出,该项目也非常活跃,这也是一个很好的迹象.
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.
这篇关于杰克逊 VS.格森的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!