diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c index 4865b0ed46..e00e85d991 100644 --- a/pimd/pim_rp.c +++ b/pimd/pim_rp.c @@ -1321,9 +1321,7 @@ void pim_rp_show_information(struct pim_instance *pim, struct vty *vty, bool uj) buf, sizeof(buf)), json_rp_rows); - vty_out(vty, "%s\n", json_object_to_json_string_ext( - json, JSON_C_TO_STRING_PRETTY)); - json_object_free(json); + vty_json(vty, json); } }