How to convert Enum to JSON? | Output from Query | Postgresql

How can we convert this output from query to a json?

Ok(User { username: "anurag23", fullname: "Anurag Gupta" })

Query is as follows:

You should be able to use serde

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.