Skip to content

How to insert newlines between some objects when saving array to a file using disassembler + stringer? #116

Closed Answered by uhop
JCMais asked this question in Q&A
Discussion options

You must be logged in to vote

There is no component that can produce human-readable output. It should be easy to add one. At some point, I thought about one but couldn't decide on a format or supported formatting features. For example, you keep array elements on separate lines together, but how to treat arrays in arrays? Remember that we should provide a generic solution suitable for data of different shapes.

There is one component that does something like that — the JSONL stringer: jsonl/Stringer. It should be possible to build something up using code from both stringers.

In general, the JSON formatting was a moot point for me because I worked with files I could not open in any non-streaming editor nor I could concei…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by uhop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants