This is the code I am seeking to do
std::string json_str;
const char json[] = json_str;
this is my try
const char json [json_str.size()] = {(char) json_str.c_str ()};
But it gives me the error "cast from 'const char*' to 'char' loses precision"
Please help. Thank you.