0

Trying to ujson.dump with newlines after every line, but I cannot seem to do it with the dump options (ujson doesn't seem to support the separators keyword).

Is there some other way to do this?

azazelspeaks
  • 5,727
  • 2
  • 22
  • 39
  • Seems “indent” is the only formatting option. – deets Jan 30 '19 at 23:45
  • Yes but my choices are either indent=0 where everything is on the same line, or indent=1 which puts every dict element on a new line, creating waay too much of a scrolling problem. – azazelspeaks Jan 31 '19 at 18:43
  • That's all you got. Your choice of tool makes other things not possible. If this is a real bother, why don't you just write a small python-Skript that you use to pipe the data through, which formats according to you wishes? – deets Feb 01 '19 at 19:41

0 Answers0