How to fix ArduinoJSON: error: 'DynamicJSONDocument' was not declared in this scope
Problem:
While trying to compile your project, you see an error message like
arduinojson_error.txt
error: 'DynamicJSONDocument' was not declared in this scopeSolution
The Json in DynamicJsonDocument must be spelled camel case: Json, not JSON! The correct spelling is DynamicJsonDocument.
If that does not help, ensure
include_arduinojson.h
#include <ArduinoJson.h>is at the top of the file where the error occurs.
Check out similar posts by category:
C/C++
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow