ffjson command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ffjson: command not found
or when using sudo you get the following error message
sudo: ffjson: command not found
Solutions to ffjson: command not found
How To Fix ffjson: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ffjson is provided by ffjson package.
ffjson is:
ffjson generates static MarshalJSON and UnmarshalJSON functions for structures in Go. The generated functions reduce the reliance upon runtime reflection to do serialization and are generally 2 to 3 times faster. In cases where ffjson doesn’t understand a Type involved, it falls back to encoding/json, meaning it is a safe drop in replacement. By using ffjson your JSON serialization just gets faster with no additional code changes.
This package contains the ffjson executable.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ffjson
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ffjson.
sudo apt -y install ffjson
Or if you have aptitude installed you can use the following command.
sudo aptitude install ffjson
Summary
In this tutorial we learn how to fix ffjson command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.