when using a format string like "Hello Worldn{@environment}"
and e.g. passing an anonymous object like new { A = "a", B = 1 }
, the standard output is as follows:
Hello World
{"A" = "a", "B" = 1}
Is there a built-in way to use indentation for automatically serialized template argument objects?
I’m looking for output similar to this:
Hello World
{
"A" = "a",
"B" = 1
}