rapidjson的BUG???

rapidjson::Document doc;
doc.SetObject();
rapidjson::Document::AllocatorType& allocator = doc.GetAllocator();
doc.AddMember(“test”, 123, allocator);

打印结果:
{“test”:123} 这是对的

但是,改成下面这样
string key = “test”
doc.AddMember( key.c_str() , 0 , allocator);

打印结果
{"\u0000est":0"} 第一个字符怎么变成这个???

:3: :3: :3: :3: :3: :3: :3: :3:

写成文件呢?

昨天又在xcode上面试了下
输出是正常的
在VS2012上就不正常了

没写过。。。
不知道写出来是啥~