added json exit