    auto json_syntax_error = [](auto error) {
      io::fatal(status_code::syntax_error,
        "{{\n"
        "    \"result\": \"ERROR\",\n"
        "    \"error\": \"{}\"\n"
        "}}", error);
    };

    if(!cli::output_format || cli::output_format == "readable")
      return readable_syntax_error;
    
    return json_syntax_error;