1 Star 4 Fork 2

linuxmail/lib-zjson

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

lib-zjson

C++版 json 库

本 JSON 库是从 https://gitee.com/linuxmail/lib-zc 抽出来的, 可单独使用

建议先对照着类(zcc_json.h)看例子

帮助文档 https://gitee.com/linuxmail/lib-zc/blob/master/doc/json_cpp.md

介绍

  • 借用了vector和map, 学习成本非常低

  • 结构简单,只有一个类

  • 解析/深度复制使用非递归的方式处理,支持无限深度

  • 一个 zcc_json.cpp, 一个 zcc_json.h

例子

unserialize_test.cpp

从一个文件读取内容, 并 反序列化为 json

用法 ./unserialize_test somejson.js

create_test.cpp

根据目标生成一个 json

object_test.cpp

对象操作例子

array_test.cpp

数组操作例子

MIT License Copyright (c) 张岩. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

About

json库, 借用了vector和map, 学习成本非常低. 结构简单,只有一个类.一个cpp一个h expand collapse
C++ and 4 more languages
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/linuxmail/lib-zjson.git
git@gitee.com:linuxmail/lib-zjson.git
linuxmail
lib-zjson
lib-zjson
master

Search

344bd9b3 5694891 D2dac590 5694891