Consider using a JSON library: - https://github.com/interactive-matter/aJson - https://github.com/bblanchon/ArduinoJson