pub fn row_to_json(row: &PgRow) -> Value
Convert a sqlx row to a JSON object, decoding each column by its PostgreSQL type.
A column whose value cannot be decoded becomes null rather than failing the whole row.
null