Upgrading Arduino Json 5 to 6 on ESP8266 sketch

Hi all :slight_smile:

I have a code, that as for now runs the ArduinoJson v. 5 .

When i compile with ArduinoJson 6 i get compile errors.

Is someone inhere able to help updating my code to the latest V6 of Arduino Json?

The code can be found here:

It is an ESP8266 for controlling local HVAC over modbus

BIG THANKS:)

Is there a specific reason you want to update it to the ArduinoJson 6 API?