How to install ArduinoJson 7
Here are the common methods to install ArduinoJson.
Method 1: Arduino IDE
Use this method if you use the Arduino IDE.
- Click on the library tab in the Arduino IDE
- Search for “ArduinoJson”
- Select the version: 7.2.1
- Click install.
Method 2: PlatformIO
Use this method if you use PlatfomIO.
- Click on the PlatformIO tab
- Click on “Libraries”
- Search for “ArduinoJson”
- Select the version: 7.2.1
- Click “Add to Project”
Method 3: CMake
Use this method if you use CMake.
See How to use ArduinoJson with CMake?
Method 4: Single header
Use this method if you use neither Arduino, PlatformIO, nor CMake.
- Download
ArduinoJson-v7.2.1.h
- Save the file alongside with your
.cpp
files
Method 5: Build artifacts
Use this method to use the latest development version.
- Download the latest build artifacts
- Extract
ArduinoJson.h
to your project folder.
Method 6: Git clone
Use this method if you want to make changes to the library.
- 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)