nested json array formatting #4131
MochaSteve256
started this conversation in
Ideas
Replies: 1 comment
-
Ok, in this view it removes all the newline's. But hopefully you see what i mean |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't know if i'm dumb, but i don't think this is currently possible.
I want the pretty-printing of th e dump() function to accept a parameter that specifies in what nesting level newlines are inserted.
Like, if i do this using dump(4):
{ "blocks": [ [ 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 0, 0, 0 ], [....
...which is quite unreadable. It should be able to only insert newlines when a new "blocks" item is appended rather than whenever an item in an array within the "blocks" array.
Beta Was this translation helpful? Give feedback.
All reactions