If you read my last post, you now know how to get a valid JSON output from your MongoDB shell.
But raw JSON is often useless in your scripts because you have to manipulate it to extract only the information you need.
For this purpose, I personalty use a free tool called “jq“. It is very powerful and has many advanced features. I will only show you some basic concepts that will allow you to simply deal with JSON data in your scripts.