diff --git a/lib/vty.c b/lib/vty.c index 2a0bb9446a..ab98ac14e8 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -293,7 +293,7 @@ static int vty_json_helper(struct vty *vty, struct json_object *json, return CMD_SUCCESS; text = json_object_to_json_string_ext( - json, JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE); + json, options); vty_out(vty, "%s\n", text); json_object_free(json);