内容简介:JSON for Modern C++ 3.2.0 已发布,此版本引入了此外,新版支持从宽字符串类型进行解析。这是将库从 UTF-8 向 UTF-16 和 UTF-32 支持的第一步。新特性
JSON for Modern C++ 3.2.0 已发布,此版本引入了 SAX 接口 。虽然这可能只是少数人使用的一个非常特殊的功能,但它允许统一所有消耗输入并创建某种 JSON 值的函数。
此外,新版支持从宽字符串类型进行解析。这是将库从 UTF-8 向 UTF-16 和 UTF-32 支持的第一步。
部分更新如下
新特性
-
support to parse from wide string types
std::wstring,std::u16string, andstd::u32string; the input will be converted to UTF-8 ( #1031 ) -
added support for
std::string_viewwhen using C++17 ( #1028 ) -
allow to roundtrip
std::mapandstd::unordered_mapfrom JSON if key type is not convertible to string; in these cases, values are serialized to arrays of pairs ( #1079 , #1089 , #1133 , #1138 )
Bug 修复
-
allow to create
nullptr_tfrom JSON allowing to properly roundtripnullvalues ( #1169 ) -
allow compare user-defined string types ( #1130 )
-
better support for algorithms using iterators from
items()( #1045 , #1134 ) -
added parameter to avoid compilation error with MSVC 2015 debug builds ( #1114 )
-
re-added accidentially skipped unit tests ( #1176 )
-
fixed MSVC issue with
std::swap( #1168 )
改进
-
key()function for iterators returns a const reference rather than a string copy ( #1098 ) -
binary formats CBOR, MessagePack, and UBJSON now supports
floatas type for floating-point numbers ( #1021 )
详细发布说明和下载地址 https://github.com/nlohmann/json/releases/tag/v3.2.0
JSON for Modern C++ 是一个由德国大牛 nlohmann 编写的在 C++ 下使用的 JSON 库。
具有以下特点
-
直观的语法
-
整个代码由一个头文件组成 json.hpp,没有子项目,没有依赖关系,没有复杂的构建系统,使用起来非常方便
-
使用 C++ 11 标准编写
-
使用 json 像使用 STL 容器一样
-
STL 和 json 容器之间可以相互转换
-
严谨的测试:所有类都经过严格的单元测试,覆盖了 100% 的代码,包括所有特殊的行为。此外,还检查了 Valgrind 是否有内存泄漏。为了保持高质量,该项目遵循核心基础设施倡议(CII)的最佳实践
以上所述就是小编给大家介绍的《JSON for Modern C++ 3.2.0 发布,C++ JSON 库》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- NPM包(模块)发布、更新、撤销发布
- 有赞灰度发布与蓝绿发布实践
- 【重磅发布】Linkis 0.10.0 版本发布
- BeetlSQL 3.0.9 发布,Idea 插件发布
- 贝密游戏 0.7.0 发布,发布斗地主
- 【重磅发布】DataSphere Studio 0.9.0 版本发布
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Spring揭秘
王福强 / 人民邮电出版社 / 2009.8 / 99.00元
没有教程似的训导,更多的是说故事般的娓娓道来,本书是作者在多年的工作中积累的第一手Spring框架使用经验的总结,深入剖析了Spring框架各个模块的功能、出现的背景、设计理念和设计原理,揭开了Spring框架的神秘面纱,使你“知其然,更知其所以然”。每部分的扩展篇帮助读者活学活用Spring框架的方方面面,同时可以触类旁通,衍生出新的思路和解决方案。 本书内容全面,论述深刻入理,必将成为每......一起来看看 《Spring揭秘》 这本书的介绍吧!