C/C++语言 JSON 处理库
用C/C++语言编写的JSON处理库,windows和linux系统均可用。
使用简单:
读取JSON:
JsonObjectjson=JsonObject("{"A":1,"B":"2"}");
intA=json.GetValueInt("A");
stringB=json.GetValueString("B");
写JSON:
JsonObjectjson;
json.SetValue("A",1);
json.SetValue("B","2");
stringjsonStr=json.ToString();
下载地址
用户评论