ESP32 ArduinoJson v6: Serializing JSON

How to serialize JSON on the ESP32, using the ArduinoJson library.