# cJSON **Repository Path**: mazcpnt/c-json ## Basic Information - **Project Name**: cJSON - **Description**: 最简单的json解析器 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-12-20 - **Last Updated**: 2022-03-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cJSON JSON 语法:http://www.json.org/json-zh.html cJSON 仓库:https://github.com/DaveGamble/cJSON cJSON旨在成为您可以完成工作的最简单的解析器。它是C的单个文件,也是单个头文件。 ## 源码 ### 目录结构 ``` cJSON ├── cJSON.c // 核心源码 ├── cJSON.h ├── demo // 使用cJSON库的示例工程 │   └── linux │   ├── contact // 联系人管理系统, 支持增删改查json数据 │   │   ├── contact.c │   │   ├── list.json │   │   ├── Makefile │   │   └── README.md │   ├── generate // 使用cJSON库创建json字符串示例程序 │   │   ├── generate.c │   │   ├── Makefile │   │   └── README.md │   └── parse // 使用cJSON库解析json字符串为json键值对示例程序 │   ├── Makefile │   ├── parse.c │   ├── README.md │   └── test.json ├── LICENSE // 开源许可证 └── README.md // 说明文档 ``` ### 移植 直接将 `cJSON.c` 和 `cJSON.h` 拷贝到您的工程中即可,无需额外配置。 ### 使用 详见 `demo` 目录下使用示例,每个示例有对应的说明文档。 ### 开源协议 ``` MIT License Copyright (c) 2020 mz8023yt 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. ```