- 博客(0)
- 资源 (4)
- 收藏
- 关注
Json API for C++ 源码 (source code)
本源码是我上传的另外一个资源的源代码,描述可以参考另一资源,链接http://download.csdn.net/detail/haiming80/4282265
2014-07-04
Json API for C++
JsonApi helps C++ developers to parse JSON string, or create JSON string.
File list:
JsonApi.h
JsonApi.lib
JsonApi.dll
Sample code for parse an JSON string:
const char* jsonSrcString = ""; //assume initialized
JsonApi::JsonValue jval;
jval.parse(jsonSrcString);
printf("%s\r\n", jval.toString_styled().getValue());
jval.toFile_styled(".\\json.txt");
Sample code for create an JSON string:
JsonApi::JsonValue jval;
jval["id"] = 10005;
jval["key"] = "value";
jval["array"].append("item1");
jval["array"].append("item2");
jval["array"].append(2000);
printf("%s\r\n", jval.toString_styled().getValue());
jval.toFile_styled(".\\json.txt");
2012-05-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人