Make the restart and quit API commands valid json responses