Ref.:How to parse JSON string via command line on Linux
Ubuntu: apt-get install jq
Mac: brew install jq