Examples using... json.MarshalIndent()

Recent
This example uses RawMessage to use a precomputed JSON during marshal.
MarshalIndent is like Marshal but applies Indent to format the output. Each JSON element in the output will begin on a new line beginning with prefix followed by one or more copies of indent according to the indentation nesting.