Function casper_rust_wasm_sdk::helpers::json_pretty_print

source ·
pub fn json_pretty_print<T>(
    value: T,
    verbosity: Option<Verbosity>,
) -> Result<String, SdkError>
where T: Serialize,
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.