pub fn deserialize_json<T>(input: &[u8]) -> Result<T, Error<Error>>where T: DeserializeOwned,
Deserialize JSON to a given type using serde-path-to-error.
This provides better error locations on parsing failures.