mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-03 15:55:45 +00:00

This introduces two new wrapper types `Json` and `Jsonb`, currently exported by `sqlx::postgres::{Json, Jsonb}` and adds serde and serde_json as optional dependencies, under the feature flag `json`. Wrapping types in `Json[b]` that implement `serde::Deserialize` and `serde::Serialize` allows them to be decoded and encoded respectivly.