Function cosmwasm_std::from_json

source ·
pub fn from_json<T: DeserializeOwned>(value: impl AsRef<[u8]>) -> StdResult<T>
Expand description

Deserializes the given JSON bytes to a data structure.

Errors if the input is not valid JSON or cannot be deserialized to the given type.