json_do_bool
void json_do_bool(const char *, int);
json_do_bool("template", p->conf.template);
json_do_bool("cloned", p->template != NULL);
json_do_bool("passive", p->conf.passive);
json_do_bool("down", p->conf.down);
json_do_bool("multihop", p->conf.ebgp && p->conf.distance > 1);
json_do_bool("ttl_security", p->conf.ttlsec);
json_do_bool("used_by_nexthop", kf->flags & F_NEXTHOP);
json_do_bool("blackhole", kf->flags & F_BLACKHOLE);
json_do_bool("reject", kf->flags & F_REJECT);
json_do_bool("coupled", kt->fib_sync);
json_do_bool("admin_change", kt->fib_sync != kt->fib_conf);
json_do_bool("is_up", iface->is_up);
json_do_bool("nh_reachable", iface->nh_reachable);
json_do_bool("valid", nh->valid);
json_do_bool("connected", nh->kr.flags & F_CONNECTED);
json_do_bool("as4byte", capa->as4byte);
json_do_bool("partial", flags & ATTR_PARTIAL);
json_do_bool("transitive", flags & ATTR_TRANSITIVE);
json_do_bool("refresh", capa->refresh);
json_do_bool("optional", flags & ATTR_OPTIONAL);
json_do_bool("enhanced_refresh", capa->enhanced_rr);
json_do_bool("extended_message", capa->ext_msg);
json_do_bool("eor", 1);
json_do_bool("restart", restarted);
json_do_bool("valid", r->flags & F_PREF_ELIGIBLE);
json_do_bool("filtered", 1);
json_do_bool("best", 1);
json_do_bool("ecmp", 1);
json_do_bool("as-wide", 1);
json_do_bool("stale", 1);
json_do_bool("announced", 1);
json_do_bool("graceful_notification", 1);
json_do_bool("preserved",
void json_do_bool(const char *, int);
void json_do_bool(const char *, int);
json_do_bool("asid_inherit", 1);
json_do_bool("ip_inherit", 1);