Skip to content

v1.30.0

Compare
Choose a tag to compare
@elliotchance elliotchance released this 19 May 02:29
· 35 commits to master since this release
Added JSONBytesIndent and JSONStringIndent (#147)

JSONBytesIndent and JSONStringIndent return the JSON encoded array as bytes or strings respectively with indent applied.

One important thing to note is that it will treat a nil slice as an empty slice to ensure that the JSON value return is always an array. See json.MarshalIndent for details.