Json::Value json_value; Json::FastWriter json_write; string str = json_write.write(json_value); cout<<str.c_str()<<endl;