colorjson
colorjson copied to clipboard
Add f.ObjectSeparator flag
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"}}
@TylerBrock any appetite for merging this?
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?
to have a more compact representation?
Exactly, especially when dealing with JSONL files