The following code has quite a few dependancies I didn't really keep track of for proper documentation. The ArduinoJSON being the most complex afair.
It's offered as is and without any kind of promise it won't crash or break something but if you can get it to work this baby has all kindsa magical applications.