I have a json file
which looks something like this
{accessvalue: xyz-verylongvalue ,Type:abc}
I am parsing it using nlohmann json as given below:
std::ifstream ifs(PATH);
auto config= json::parse(ifs);
if (config.find("accessvalue")!=config.end()){
string somevalue= config["accessvalue"].get<string>();
}
The above gives me a string value but next function expects the value in raw form. how do i convert "somevalue" to raw string or parse only the raw part.