Started work on json return for switch on off