run the command, parse the output and send back the json