In this post, we will see how to resolve How to deserialize json using serde_with for double option
Question:
I am usingserde_with = "2.2.0"
trying to deserialize this json body:Best Answer:
Thanks @kmdreko I found out that one field below my user_id field above has only one option(which should not use serde_with on this field):If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review