rocket_contrib

Module json

Source
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.11"
default-features = false
features = ["json"]

Structs§

Enums§

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