Skip to main content

to_json_string

Function to_json_string 

Source
pub fn to_json_string<T: Serialize>(val: &T) -> Result<String, ContractError>
Expand description

Serialize a contract data structure to deterministic, pretty or compact JSON.