jsonpath command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
jsonpath: command not found
or when using sudo you get the following error message
sudo: jsonpath: command not found
Solutions to jsonpath: command not found
How To Fix jsonpath: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu jsonpath is provided by ruby-jsonpath package.
ruby-jsonpath is:
Every JSON object is composed on an inherent hierarchy and structure. Every JSON ends up creating a tree of nodes, where each node is a JSON Element.
This hierarchy in JSON allows one to create a standard mechanism to traverse through specific parts of the JSON. A standard way to do this is called JSONPath.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-jsonpath
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-jsonpath.
sudo apt -y install ruby-jsonpath
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-jsonpath
Summary
In this tutorial we learn how to fix jsonpath command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.