Marshal: not so human readable [{"Name":"xx","Age":1},{"Name":"test","Age":18}]
MarshalIntent: too many lines, mostly more than one screen, low information density
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
caoruidong
changed the title
encoding/json: Can json add newline between each elements in slice or map
encoding/json: Can json add newline between each elements in slice
Nov 26, 2020
How can I write a slice to file in json format with new line between elements? Or only third party libs support it?
What did you expect to see?
a little compacter but still human readable
or
What did you see instead?
Marshal: not so human readable
[{"Name":"xx","Age":1},{"Name":"test","Age":18}]
MarshalIntent: too many lines, mostly more than one screen, low information density
The text was updated successfully, but these errors were encountered: