Here are the common ways to install ArduinoJson.

Option 1: Use the Arduino Library Manager

Difficulty: ⚫⚪⚪

Recommendation: Use this method if you use Arduino 1.6.x or newer.

Instructions:

  • Open the Arduino Library Manager
  • Search for “ArduinoJson”
  • Select the version: 5.13.4
  • Click install.

See the video

Option 2: Download the single header

Difficulty: ⚫⚫⚪

Recommendation: Use this method if you don’t use Arduino.

Instructions:

Option 3: Clone the repository

Difficulty: ⚫⚫⚫

Recommendation: Use this method if you want to make a Pull Request or use features that have not been released yet.

Instructions:

  • Run the command git clone https://github.com/bblanchon/ArduinoJson.git
  • Configure your compiler to add the folder ArduinoJson/src/ to the list of include folders (-I /path/to/ArduinoJson/src/ on GCC command line)