This page covers ArduinoJson 5.13.5, consider upgrading to version 6.21.2.
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
- Open the
Compiler / Directies, click on
Add ItemA 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
Option 2: Use “single header” version
- Download the “single header” from the Releases, for example
ArduinoJson-v5.10.0.h. (you cannot use
git cloneto 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.