Atmel Studio
⚠️ CAUTION: SLIPPERY FLOOR ⚠️
The Arduino Library Manager installs the ArduinoJson version 6 by default.However, using version 5 is highly recommended because version 6 is still in beta stage.
Open the Arduino Library Manager and make sure that ArduinoJson version 5.13.4 is installed.
To use ArduinoJson within Atmel Studio 7, do not use the “Add Arduino Library” feature.
Instead, use one of the following solution.
Option 1: Set include directory
- Download (or
git clone
) ArduinoJson where you want. - Right-click on target project and click
Properties
- Open the
Toolchain
tab - Under
Compiler / Directies
, click onAdd Item
A dialog box entitled “Add Include Paths (-I)” should appear. - Enter the location of the
src/
folder of ArduinoJson
Now the compiler knows where to find ArduinoJson.h
.
Option 2: Use “single header” version
- Download the “single header” from the Releases, for example
ArduinoJson-v5.10.0.h
. (you cannot usegit clone
to get the “single header”) - Copy this file in your project folder.
The compiler will find ArduinoJson-v5.10.0.h
as it’s in your project folder.