[13.x] Output empty JSON array from route:list --json when no routes match

Merged
XU
1mo ago
+34-2

When no routes match, route:list --json prints an error message instead of JSON, which breaks piping into jq or other parsers