mirror of https://github.com/rwf2/Rocket.git
a019f0d1f3
Prior to this commit, a 'json!' invocation returned a value of type 'Value' from 'serde_json'. Because 'Value' does not implement 'Responder', most uses of 'json!' were wrapped in 'Json': 'Json(json!(..))`. By returning a crate-local 'JsonValue' type that implements 'Responder', this repetition is resolved, and a 'json!' can appear unwrapped. This commit also removes the reexport of 'Value' from 'rocket_contrib' as well as the default type of 'Value' for 'T' in 'Json<T>'. |
||
---|---|---|
.. | ||
templates | ||
json.rs | ||
lib.rs | ||
msgpack.rs | ||
uuid.rs |