Replies: 1 comment
-
There is no |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm sorry if this is obvious, but I didn't see it anywhere in the docs yet, and I got messed up for a few hours cause of it. Is there a reason that there is a
rocket::serde::json::json!
macro and arocket::serde::json::serde_json::json!
macro?I have been trying to use them the same as the original
serde_json::json!
macro from the serde_json crate, but the first one (rocket::serde::json::json!
) kept giving me an unresolved macro error. I eventually stumbled upon the rocket::serde::json::serde_json::json!` macro, and it works as expected.Is there a reason for two macros that are named the same and seemingly do the same thing, except the better named one doesn't work? Sorry if I skimmed over something in the changelog.
Beta Was this translation helpful? Give feedback.
All reactions