jshon command not found

In this troubleshooting guide we learn how to fix jshon command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

jshon: command not found

or when using sudo you get the following error message

sudo: jshon: command not found

Solutions to jshon: command not found

How To Fix jshon: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu jshon is provided by jshon package.

jshon is:

Jshon is a command line utility to parse, read and create JSON. It is designed to be as usable as possible from within the shell and replaces fragile adhoc parsers made from grep/sed/awk as well as heavyweight one-line parsers made from Perl/Python. Jshon loads json text from stdin, performs actions, then displays the last action on stdout.

Json parsing features include: Return data types of values Report data type lengths Sort JSON data by keys In-place editing of JSON files Format or “beautify” JSON (as changing indentation, etc) Create JSON from an empty object Extraction of keys and values

To fix this problem, we can install more using the command below.

sudo apt-get -y install jshon

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install jshon.

sudo apt -y install jshon

Or if you have aptitude installed you can use the following command.

sudo aptitude install jshon

Summary

In this tutorial we learn how to fix jshon command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.