Postgresql – Error: Error { kind: ToSql(0), cause: Some(WrongType { postgres: Json, rust: "alloc::string::String" }) }
I have tried to insert json value into my table and got error async fn insert_values(client: &Client, user: Report) -> Result<(), Error> { // Serialize the user data to JSON let user_json = json!({ "username": user.username, "gender": { "val": user.gender.val,…