Open json file from terminal

Asked by chandrashekar v about a year ago


When a program fail or output is not as expected , the details is stored in json file, how do we open and see json file from terminal.

1 Answer


    You can make use of the cat command if you are in a linux based operating system or on Mac OS.

    If you are Windows, you cannot access the cat command directly on the Command prompt, but you can run this command from powershell.

    For Example, let's say the file generated is log.json

    You can view the files contents by writing the command

    cat log.json

    Hope this helps, please let me know if this wasn't what you were referring to.


    Pranav Mandava


Your answer