colorjson icon indicating copy to clipboard operation
colorjson copied to clipboard

Add f.ObjectSeparator flag

Open rm-hull opened this issue 2 years ago • 4 comments

With this flag set to true (which is the default) and f.Indent = 0, then the behaviour is as previous, eg.

{ "a": 5, "b": [ 1, 2, 3 ], "c": { "d": "e" } }

When f.ObjectSeparator = false and f.Indent = 0, it would render the object as:

{"a":5,"b":[1,2,3],"c":{"d":"e"}}

rm-hull avatar Sep 23 '22 23:09 rm-hull

@TylerBrock any appetite for merging this?

rm-hull avatar Feb 11 '23 17:02 rm-hull

Yes, sorry for the immense delay. Can you explain the use case a little more? Is the idea simply to have a more compact representation?

TylerBrock avatar Jul 24 '23 00:07 TylerBrock

to have a more compact representation?

Exactly, especially when dealing with JSONL files

rm-hull avatar Jul 24 '23 17:07 rm-hull