Go to the documentation of this file. 32 #define GET_FIELD_FROM_JSON_RETURN_ON_ERROR(json, name, type, jtype, mandatory, def) \ 33 type field_##name = static_cast<type>(def); \ 34 bool field_##name##_found = false; \ 35 (void)field_##name##_found; \ 36 do if (json.HasMember(#name)) \ 38 if (json[#name].Is##jtype()) \ 40 field_##name = static_cast<type>(json[#name].Get##jtype()); \ 41 field_##name##_found = true; \ 45 LOG_ERROR("Field " << #name << " found in JSON, but not " << #jtype); \ 51 LOG_ERROR("Field " << #name << " not found in JSON"); \