Added code to handle JSON instructions