Closed Shravan40 closed 7 years ago
I have found a solution. But not sure, whether it the best way to do it.
for(auto& k: y["message"].array_items()){
auto z = Json::parse(k.dump(),input_error);
auto fName = z["fund_name"].string_value();
auto uDate = z["upload_date"].string_value();
auto nav = z ["nav"].number_value();
}
"Json::parse(k.dump(), ...)" is a no-op. Just use k["fund_name"].string_value() etc. On Mon, Dec 26, 2016 at 11:36 AM Shravan Kumar Gond < notifications@github.com> wrote:
I have found a solution. But not sure, whether it the best way to do it.
for(auto& k: y["message"].array_items()){ auto z = Json::parse(k.dump(),input_error); auto fName = z["fund_name"].string_value(); auto uDate = z["upload_date"].string_value(); auto nav = z ["nav"].number_value(); }
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dropbox/json11/issues/87#issuecomment-269225332, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgyRlcMrc1pkdEEzxLpPjQ-ffI1Nak-ks5rL-0DgaJpZM4LVr14 .
I would like to parse this
json
object.Here is my try.