#[derive(DisplayPretty)]Expand description
Derive macro that implements Display trait using pretty JSON serialization
This generates a Display implementation that outputs the struct as pretty-printed JSON using serde_json::to_string_pretty().
ยงExample
use pretty_simple_display::DisplayPretty;
use serde::Serialize;
#[derive(Serialize, DisplayPretty)]
struct User {
id: u64,
name: String,
}
let user = User { id: 1, name: "Alice".to_string() };
println!("{}", user); // Pretty-printed JSON