Here are the common ways to install ArduinoJson.

Option 1: Use the Arduino Library manager

Choose this method if you use Arduino 1.6.x or newer.

Option 2: Download the single header

You can download ArduinoJson as a single .h file.

Just go to the latest release on GitHub and download the file.

Now, copy the file alongside with your .cpp file.