casper_rust_wasm_sdk::helpersFunction json_pretty_print
source pub fn json_pretty_print<T>(
value: T,
verbosity: Option<Verbosity>,
) -> Result<String, Box<SdkError>>
Expand description
Pretty prints a serializable value as a JSON string.
§Arguments
value
- The serializable value to pretty print.
verbosity
- An optional verbosity level for pretty printing.
§Returns
A JSON string representing the pretty printed value.