JSON format in GNU/linux- Bash for Windows 10

Hi Readers,

I am happy to post another blog post on how to format a JSON string in GNU/Linux.

If a string is large then JSON looks very cryptic and it becomes difficult to search/edit it.

We can format easily using the Python interpreter. Python provides JSON modules that will do the needful.

#echo ‘content’ | python -m json.tool

josepraveenjsoninbash

Hope this post helps you. Please subscribe and comment if you have any doubts.

Happy Learning !!

Advertisements

One thought on “JSON format in GNU/linux- Bash for Windows 10”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s