Change clot error output to json for ease of styling