Skip to content
Discussion options

You must be logged in to vote

There is no standard way to encode collections as query params, therefore serde_url_encoded doesn't support it. That is the parser axum's Query uses.

With that said you can use axum_extra::extract::Query instead which expects params the way HTML forms encodes them. Example here https://github.com/tokio-rs/axum/blob/main/axum-extra/src/extract/query.rs#L147. You can also use serde_qs which does support the a[] syntax.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@gd87429
Comment options

Answer selected by gd87429
Comment options

You must be logged in to vote
7 replies
@jplatte
Comment options

@JuxhinDB
Comment options

@JuxhinDB
Comment options

@jplatte
Comment options

@JuxhinDB
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants