jsonlint-php command not found

In this troubleshooting guide we learn how to fix jsonlint-php command not found error message

Introduction

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

jsonlint-php: command not found

or when using sudo you get the following error message

sudo: jsonlint-php: command not found

Solutions to jsonlint-php: command not found

How To Fix jsonlint-php: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu jsonlint-php is provided by jsonlint package.

jsonlint is:

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages. These properties make JSON an ideal data-interchange language.

This package provides jsonlint-php, a validating parser of JSON files. Another more complete JSON syntax validator and formatter tool is provided by the python-demjson package.

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

sudo apt-get -y install jsonlint

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

You can also use apt command to install jsonlint.

sudo apt -y install jsonlint

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

sudo aptitude install jsonlint

Summary

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