-
I'm working on a Rust web application using Loco-rs, Axum, and SeaORM, and I encountered an error when trying to return a JSON response from my api endpoint. Error Message
Code Snippet
How can I properly return a JSON response in Axum while maintaining the expected return type of |
Beta Was this translation helpful? Give feedback.
Answered by
alokmahor
Mar 21, 2025
Replies: 1 comment
-
By changing format::Json to format::json code is working fine |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alokmahor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By changing format::Json to format::json code is working fine