杰克逊Gson

编程入门 行业动态 更新时间:2024-10-28 10:32:48
本文介绍了杰克逊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

本文发布于:2023-08-01 12:22:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1268280.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:杰克逊   Gson

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!