Skip to main content

print_json_object

Function print_json_object 

Source
pub fn print_json_object<T: Serialize>(value: T) -> Result<()>
Expand description

Prints a serializable object: envelope-wrapped in --json mode, pretty-printed otherwise.

Use this for objects that have no human-readable Display format (block data, RPC responses, etc.).