Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSON command line formatter tool for Linux [closed]

Tags:

json

linux

Is there an editor or tool for Linux command line to format JSON data?

like image 615
Siva Avatar asked Mar 09 '11 09:03

Siva


People also ask

How do I open a JSON file in Linux terminal?

Vim is a file opener software that can be used to open the JSON file on Linux platform. GitHub Atom is a cross-platform tool to open JSON files. Other than these tools, you can use web browsers like Google Chrome and Mozilla Firefox to open JSON files, which we discuss in detail later.

How do I enable JSON formatter in Chrome?

Just insert code into the single box visible on the web page and press the “Format JSON” button. The desired re-formatted text will be displayed below. An “Un-Format JSON” button is available to edit JSON files back to their space-saving original form.


1 Answers

 alias pp='python -mjson.tool'  pp mydata.json 

From the first link in the accepted answer: http://ruslanspivak.com/2010/10/12/pretty-print-json-from-the-command-line/

like image 107
tjb Avatar answered Sep 16 '22 11:09

tjb