While almost all text-editors can view .json files, I am sure there are some or one which show .json files in all its glory. Could somebody share name or names of native .json viewers rather than text-editors which can also show .json files. I am looking to know about the earliest tools which are/were used to view .json files. Looking to see raw .json output rather than pretty output.
The "earliest" and "most basic" tool I can think of that may be used to display the contents of a JSON file is
$ cat file.json
This will not do pretty-printing and it will show the "raw JSON", i.e. the file as it is.
cat utility was available in at least the 2nd release of Unix from Bell Labs in around 1972.
The JSON format was first introduced in the early 2000s.
jq is a json processor (like sed for json) which can also be used to pretty-print json documents.
cat yourfile.json | jq