Formatting JSON routing output