summaryrefslogtreecommitdiff
path: root/pathd/path_ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'pathd/path_ted.c')
-rw-r--r--pathd/path_ted.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/pathd/path_ted.c b/pathd/path_ted.c
index d17b5a0aab..6bfca50450 100644
--- a/pathd/path_ted.c
+++ b/pathd/path_ted.c
@@ -471,12 +471,8 @@ DEFPY (show_pahtd_ted_db,
}
/* Show the complete TED */
ls_show_ted(ted_state_g.ted, vty, json, !st_json);
- if (st_json) {
- vty_out(vty, "%s\n",
- json_object_to_json_string_ext(
- json, JSON_C_TO_STRING_PRETTY));
- json_object_free(json);
- }
+ if (st_json)
+ vty_json(vty, json);
return CMD_SUCCESS;
}