added header files for JSON class.
Modified to create getAllJson() method in the tspawn command.