网站首页
编程语言
数据库
系统相关
其他分享
编程问答
AddItemToObject
2024-07-02
cJSON:构建JSON
使用cJSON库构建比较简单的JSON类型:create_json.c#include<stdio.h>#include<string.h>#include<stdlib.h>#include"cJSON.h"staticintcreate_json_type_1(void){char*json_str=NULL;cJSON*root=NULL;root=cJSON_Cre