JSON encoded command should be JSON encoded
reboot_ap is actually restart_ap