C++的JSON开发包 Rapidjson
<p>Rapidjson 是一个 C++ 的快速 JSON 解析器和生成器,使用 SAX/DOM 风格的 API 设计。</p> <p>主要特点:</p> <p></p> <ul> <li>体积小,功能全,提供 SAX 和 DOM 风格的 API,仅是 SAX 解析器只有百行代码</li> <li>快速</li> <li>无需依赖其他第三方库</li> <li>Compact. Each JSON value is 16 or 20 bytes for 32 or 64-bit machines respectively (excluding text string storage). With the custom memory allocator, parser allocates memory compactly during parsing. </li> <li>Full <a href="/misc/goto?guid=4959499401825879130" rel="nofollow"> RFC4627</a> compliance. Supports UTF-8, UTF-16 and UTF-32. </li> <li>Support both in-situ parsing (directly decode strings into the source JSON text) and non-destructive parsing (decode strings into new buffers). </li> <li>Parse number to int/unsigned/int64_t/uint64_t/double depending on input </li> <li>Support custom memory allocation. Also, the default memory pool allocator can also be supplied with a user buffer (such as a buffer allocated on user's heap or programme stack) to minimize allocation. <br /> </li> </ul> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1328055929624" target="_blank">http://www.open-open.com/lib/view/home/1328055929624</a></p>
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!