Updated the code for Arduino JSON 3.0