sample01 -- json-c
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <json-c/json.h>
/*
json_tokener_parse将符合json格式的字符串构造为一个json对象,构造的json对象默认引用计数为1,
需要在使用完后对该对象调用一次json_object_put。
*/
int main(int argc, .
原创
2020-07-25 10:55:40 ·
241 阅读 ·
0 评论