pub fn json_cast<N, M>(params: N) -> Result<M, Error>where
N: Serialize,
M: DeserializeOwned,Expand description
Cast from N to M by serializing/deserialization to/from JSON.
Returned diagnostics can contain the input JSON and payload-bearing parse
reasons. Treat them as sensitive, as with json_cast_params.