Fix the json output of the machines