David forgot to mention that you'll need an additional library which can be installed using the Arduino IDE's library manager by searching for "ArduinoJson" or from "arduinojson.org".
I haven't tested everything in detail, but after a?quick hit and a lick it seems to be basically working!
--
John P.
WA2FZW