I want inner JSON object please let me know how I can create the same as mentioned below. I tried with below code. Please help this code is throwing error.
I use jsoncons, it's way simpler than crow::json, although you do need to set_header("Content-Type", "application/json") and dump the json string into the response body.
I want inner JSON object please let me know how I can create the same as mentioned below. I tried with below code. Please help this code is throwing error.
// simple json response CROW_ROUTE(app, "/json") ([]{ crow::json::wvalue x; x["Status"] = true; x["ErrorMessage"] = "No Error";
I want the same response as mentioned below.
{"ResponseData":{ "IsValidUser":true,"Prop2":"No Error"},"Status":true,"ErrorMessage":"No Error"}