Added a better praser to cmds to allow spaces in json.