JSON

Constant JSON 

Source
pub const JSON: ColumnMarker;
Expand description

Enables JSON serialization with TEXT storage.

§Example

#[column(json)]
metadata: UserMetadata,

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