added Json support and removed some buffering of output to save memory
Merge https://github.com/voltprojects/arduino-cliProcessor