I am trying to prepare json request using c++. Like this:
string key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
std::string data = "{\n"
" \"foo\": key\n"
"}";
When I print this, it's shows like :
"foo": key
But I need like this :
"foo": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
So, please someone help me. How to do this? Thanks in advance.