From 68cdc1893d09a7ead4720a7ba4d3b2923a0e08cc Mon Sep 17 00:00:00 2001 From: Fabian Gebhart <16943048+fgebhart@users.noreply.github.com> Date: Fri, 19 Sep 2025 15:15:22 +0200 Subject: [PATCH] [router] preserve order of json params using preserve_order feature (#10661) --- sgl-router/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sgl-router/Cargo.toml b/sgl-router/Cargo.toml index a58eff9f6..0ce57ba27 100644 --- a/sgl-router/Cargo.toml +++ b/sgl-router/Cargo.toml @@ -24,7 +24,10 @@ axum = { version = "0.8.4", features = ["macros", "ws", "tracing"] } tower = { version = "0.5", features = ["full"] } tower-http = { version = "0.6", features = ["trace", "compression-gzip", "cors", "timeout", "limit", "request-id", "util"] } serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" +serde_json = { version = "1.0", default-features = false, features = [ + "std", + "preserve_order", +] } bytes = "1.8.0" rand = "0.9.2" reqwest = { version = "0.12.8", features = ["stream", "blocking", "json"] }