31 Star 135 Fork 48

Douya / JsonLite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

JsonLite

项目介绍

JsonLite是一个Json的C++实现,可以生成和解析JSON,除了依赖C/C++标准库 以外不依赖任何第三方库,可以移植到任何平台上。

JsonLite来源于实践,基本上可以满足实际需要。出于现实考虑,部分功能没有实现,例如UNICODE的自动解码与编码。 JsonLite首先考虑的易用性,而不是性能。与大多数JSON工具序列化与反序列化不同,JsonLite提供动态类型与动态执行的方法。

软件架构

说明
JsonObjectBuilder 构造JSON对象
JsonArrayBuilder 构造JSON数组
JsonParser 解析JSON字符串
JsonFormater 格式化JSON字符串
JsonValue 所有的JSON值 (null, boolean, number, string, array, object) 在JsonLite中都是JsonValue
JString JsohLite字符串类, 支持引用记数, 嵌入指针, 写时复制...

安装教程

源码,无须安装。

使用说明

请参考main.cpp。

Linux 在Source\JsonLite目录下执行make test。

Windows 打开JsonLite.sln,编译执行即可。

参与贡献

3h6a@163.com创建本项目,并欢迎大家来共同完善这个项目。

码云特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. 码云官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  4. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
  5. 码云官方提供的使用手册 http://git.mydoc.io/
  6. 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/
The MIT License (MIT) Copyright (c) 2018 3h6a@163.com 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.

简介

C++版轻量级JSON库 JsonLite是一个Json的C++实现,可以生成和解析JSON,除了依赖C/C++标准库 以外不依赖任何第三方库,可以移植到任何平台上。 展开 收起
C++ 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/a6h3/JsonLite.git
git@gitee.com:a6h3/JsonLite.git
a6h3
JsonLite
JsonLite
master

搜索帮助

14c37bed 8189591 565d56ea 8189591