Since V6 version of ArduinoJson library you get this (and others) error when compiling
'DynamicJsonBuffer' was not declared in this scope
That's because many changes were made.
https://arduinojson.org/v6/doc/upgrade/
See also here
https://github.com/bblanchon/ArduinoJson/issues/756
and here as example of upgrading code
https://github.com/tobozo/M5Stack-SD-Updater/commit/7610cb1ea17d05434d24723886f9b51721adfb69
Using ArduinoJson version 5.13.4 still compile, but since new Arduino IDE come with 6 version maybe it's better to add something in readme
Since V6 version of ArduinoJson library you get this (and others) error when compiling
'DynamicJsonBuffer' was not declared in this scope
That's because many changes were made.
https://arduinojson.org/v6/doc/upgrade/
See also here
https://github.com/bblanchon/ArduinoJson/issues/756
and here as example of upgrading code
https://github.com/tobozo/M5Stack-SD-Updater/commit/7610cb1ea17d05434d24723886f9b51721adfb69
Using ArduinoJson version 5.13.4 still compile, but since new Arduino IDE come with 6 version maybe it's better to add something in readme