question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Pretty Print Output JSON

See original GitHub issue

At the moment, it appears it gets printed to the screen as JSON.stringify(output), it might look nicer if it were displayed as JSON.stringify(output, null, 2).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
n1474335commented, Aug 29, 2018

Done: https://gchq.github.io/CyberChef/#recipe=To_MessagePack()From_MessagePack()&input=eyJhIjogMSwgImIiOiAyfQ

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.

0reactions
n1474335commented, Aug 29, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Pretty Print JSON - DigitalOcean
We can use the Python json module to pretty-print the JSON data. The json module is recommended to work with JSON files.
Read more >
Jackson - How to enable pretty print JSON output - Mkyong.com
In Jackson, we can use writerWithDefaultPrettyPrinter() to pretty print the JSON output. Tested with Jackson 2.9.8 ...
Read more >
pretty-print json in python (pythonic way) - Stack Overflow
I used following code to directly get a json output from my requests-get result and pretty printed this json object with help of...
Read more >
Pretty Print a JSON File in Python (6 Methods) - Datagy
Learn how to use Python to pretty print a JSON object, including from a file, from an API, and how to save the...
Read more >
Enable Pretty Print of JSON with Jackson
JSON being easily readable by machines is one of the many reasons for JSON's popularity. However, JSON unless formatted well, is not easily...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found