The tutorial on “How to generate JSON with ArduinoJson” can be found in the fourth chapter of “Mastering ArduinoJson”.

The book contains everything you need to know to use the library efficiently. In particular, it contains several new example project that shows the best practices.

Screen capture of chapter 4