Resolved: How to deserialize json using serde_with for double option

In this post, we will see how to resolve How to deserialize json using serde_with for double option

Question:

I am using serde_with = "2.2.0" trying to deserialize this json body:
then I get this error:

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):
but it should be a double option if using with serde_with on this field:

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com