C++的JSON操作库 Talkson
- 授权协议: Apache
- 开发语言: C/C++
- 操作系统: Windows
- 软件首页: http://code.google.com/p/talkson/
- 软件文档: http://code.google.com/p/talkson/
软件介绍
Talkson 是一个 C++ 库,包含 JSON 消息的编码和解码模块。是一个简单、轻量级的 JSON 解析器,无需依赖外部库,支持流数据解析。
将对象转成 JSON 字符串的示例代码:
// create a JSON value. This example uses the root object of the above example.
....
// serialize
JSONObjectSerializer encoder;
if( root->type == JSONValue::Object )
{
pos = 0;
encoder.open( root );
while( (pos = encoder.encode( buf, BUF_SIZE )) > 0 )
printf( "%.*s", pos, buf );
}
else if( root->type == JSONValue::Array )
{
pos = 0;
JSONArraySerializer encoder;
encoder.open( root );
while( (pos = encoder.encode( buf, BUF_SIZE )) > 0 )
printf( "%.*s", pos, buf );
}
delete root;
PHP 5权威编程
(美)古曼兹等 / 简张桂 / 电子工业出版社 / 2007-12 / 90.00元
《BRUCE PERENS开源系列丛书•PHP 5权威编程》为大家全面介绍了PHP 5中的新功能、面向对象编程方法及设计模式,还分析阐述了PHP5中新的数据库连接处理、错误处理和XML处理等机制。希望能够帮助读者系统了解、熟练掌握PHP,最大程度地挖掘:PHP的潜力,以更低的成本搭建更加稳健、高效的PHP应用。 近年来,随着使用PHP的大流量网站逐渐增加,企业在使用PHP的时候开始面临新的问......一起来看看 《PHP 5权威编程》 这本书的介绍吧!
