Top "Pretty-print" questions

Prettyprint (or pretty-print) is the application of any of various stylistic formatting conventions to text, source code, markup, and other similar kinds of content.

How can I pretty-print JSON in a shell script?

Is there a (Unix) shell script to format JSON in human-readable form? Basically, I want it to transform the following: { "…

json unix command-line format pretty-print
How to prettyprint a JSON file?

I have a JSON file that is a mess that I want to prettyprint. What's the easiest way to do …

python json formatting pretty-print
pretty-print JSON using JavaScript

How can I display JSON in an easy-to-read (for human readers) format? I'm looking primarily for indentation and whitespace, with …

javascript json pretty-print
Is there a built-in function to print all the current properties and values of an object?

So what I'm looking for here is something like PHP's print_r function. This is so I can debug my …

python debugging introspection pretty-print python-datamodel
Pretty-Printing JSON with PHP

I'm building a PHP script that feeds JSON data to another script. My script builds data into a large associative …

php json pretty-print
How to pretty print XML from Java?

I have a Java String that contains XML, with no line feeds or indentations. I would like to turn it …

java xml pretty-print
How to pretty-print a numpy.array without scientific notation and with given precision?

I'm curious, whether there is any way to print formatted numpy.arrays, e.g., in a way similar to this: …

python numpy python-2.x pretty-print
Pretty printing XML in Python

What is the best way (or are the various ways) to pretty print XML in Python?

python xml pretty-print
How to "pretty" format JSON output in Ruby on Rails

I would like my JSON output in Ruby on Rails to be "pretty" or nicely formatted. Right now, I call …

ruby-on-rails ruby json pretty-print
Javascript: How to generate formatted easy-to-read JSON straight from an object?

Possible Duplicate: How can I beautify JSON programmatically? I know how to generate JSON from an object using JSON.stringify, …

javascript json formatting pretty-print