Module rocket_contrib::json[][src]

Expand description

Automatic JSON (de)serialization support.

See the Json type for further details.

Enabling

This module is only available when the json feature is enabled. Enable it in Cargo.toml as follows:

[dependencies.rocket_contrib]
version = "0.4.10"
default-features = false
features = ["json"]

Structs

The JSON type: implements FromData and Responder, allowing you to easily consume and respond with JSON.

An arbitrary JSON value.

Enums

An error returned by the Json data guard when incoming data fails to serialize as JSON.