JSON

Constant JSON 

Source
pub const JSON: ColumnMarker;
Expand description

Enables JSON serialization with JSON type storage.

§Example

#[column(JSON)]
metadata: UserMetadata,

Requires the serde feature. The field type must implement Serialize and Deserialize.

See: https://www.postgresql.org/docs/current/datatype-json.html