-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Pretty Print Output JSON #350
Comments
Which operation is this for? The JSON Beautify operation should pretty print. |
@PenguinGeorge I believe this is for any operations with a JSON dish output
type: eg. From Msgpack.
…On Tue, 28 Aug 2018, 23:13 George J, ***@***.***> wrote:
Which operation is this for? The JSON Beautify operation should pretty
print.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#350 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACAWfrRRXlcK00X-qfQmziYHqr0_JA59ks5uVcB-gaJpZM4WN3Q7>
.
|
Yes, @artemisbot is right. I didn't realise there was an operation to do it, I feel like it might make sense to do it by default on an output of type You could also take it a step further and instead of printing a string, print a tree view: Or: However it would be necessary to have a raw / tree view toggle. |
A tree view would be great. There is already an issue open for that: #203. Indenting JSON outputs by default is actually a really quick fix. I'll do it now. |
We should improve the 'JSON Beautify' operation to at least have the option of providing a nice tree view though. Please continue the discussion in #203. |
At the moment, it appears it gets printed to the screen as
JSON.stringify(output)
, it might look nicer if it were displayed asJSON.stringify(output, null, 2)
.The text was updated successfully, but these errors were encountered: