func Marshal(jsonObj interface{}) ([]byte, error)
Marshal JSON data with default options
type Formatter struct { KeyColor *color.Color StringColor *color.Color BoolColor *color.Color NumberColor *color.Color NullColor *color.Color StringMaxLength int Indent int DisabledColor bool RawStrings bool }
func NewFormatter() *Formatter
func (f *Formatter) Marshal(jsonObj interface{}) ([]byte, error)