]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_flowspec_vty.c
bgpd: Convert vty_out to vty_json for JSON
[mirror_frr.git] / bgpd / bgp_flowspec_vty.c
index 11487ed8471d4b0f03ca153d9121bdd4785e3a68..8873ca5c0cef8b67ce950295842e6933a6c55f38 100644 (file)
@@ -449,11 +449,7 @@ int bgp_show_table_flowspec(struct vty *vty, struct bgp *bgp, afi_t afi,
                                               pi, display, json_paths);
                }
                if (use_json) {
-                       vty_out(vty, "%s\n",
-                               json_object_to_json_string_ext(
-                                               json_paths,
-                                               JSON_C_TO_STRING_PRETTY));
-                       json_object_free(json_paths);
+                       vty_json(vty, json_paths);
                        json_paths = NULL;
                }
        }