Jsoniter 0.9.8 release: JSON performance-to-standard protobuf

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

The Jsoniter is a fast and flexible JSON parser that offers both Java and Go two versions.

The recently released version of 0.9.8 provides a detailed review of performance against Jackson and Protobuf: Https://github.com/json-itera .... The principle of performance optimization will be published in the Infoq Chinese station recently, please look forward to.

It also provides a common PHP experience. In PHP, you just need to remember Json_decode, and what documents can be parsed. Now in Java, you can do the same.

Any any = Jsoniter.deserialize(input); // deserialize 返回 "Any",实际的解析是延迟在读取时才做的any.get("items", '*', "name", 0); // 抽取所有 items 的第一个 nameany.get("size").toLong(); // 不管是 "100" 还是 100 ,都给转成 long 类型,就像弱类型一样any.bindTo(Order.class); // 把 JSON 绑定到对象for (Any element : any) {} // 遍历集合, Any 实现了 iterable 接口

Project website: http://jsoniter.com/index.cn ....

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.