I need to get the value(String or int) from a Json AdSpot which has a toJson(), I need to retrieve the field by key "ext" (it's also a Json), then retrieve field by key "isBanner" from the Json value of ext.
Here is the Json AdSpot:
AdSpot(OpenRTB::Impression && imp)
: OpenRTB::Impression(std::move(imp))
{
}
void fromJson(const Json::Value & val);
Json::Value toJson() const;
I tried to use get, but don't know what to pass in the parameter for the default value.