我似乎找不到 JSON 错误

我似乎找不到 JSON 错误

以下是我的 Gigabyte R9 280x 显卡的配置文件,用于采矿设备。出于某种原因,我一直收到错误:

[2013-12-25 07:49:10]./cgminer: --config: 文件‘r9_280.conf’的 JSON 解码失败,在‘’附近应为字符串或‘}’

我已经浏览过文件,但似乎找不到错误……所有的括号都在那里!

感谢您的帮助!

{
    "pools" :
        [
            {
            "url" : "http://ltc-eu.give-me-coins.com:3333",
            "user" : "xxxx.1",
            "pass" : "xxxx"
            }
        ],
    "intensity" :       "13",
    "vectors" :         "1",
    "worksize" :        "256",
    "kernel" :          "scrypt",
    "lookup-gap" :      "0",
    "thread-concurrency" : "8192",
    "shaders" :         "2048",
    "gpu-engine" :      "1020",
    "gpu-fan" :         "0-100",
    "gpu-memclock" :    "1500",
    "gpu-memdiff" :     "0",
    "gpu-powertune" :   "0",
    "gpu-vddc" :        "0.000",
    "temp-cutoff" :     "95",
    "temp-overheat" :   "85",
    "temp-target" :     "78",
    "api-mcast-port" :  "4028",
    "api-port" :        "4028",
    "auto-fan" :        true,
    "expiry" :          "120",
    "gpu-dyninterval" : "7",
    "gpu-platform" :    "0",
    "gpu-threads" :     "2",
    "hotplug" :         "5",
    "log" :             "5",
    "no-pool-disable" : true,
    "queue" :           "1",
    "scan-time" :       "60",
    "scrypt" :          true,
    "temp-hysteresis" : "3",
    "shares" :          "0",
    "kernel-path" :     "/usr/local/bin"
}

答案1

您的 JSON 块是有效的,我认为您的问题出在其他地方。也许是cgminer期望其中一个参数是字符串以外的类型?

相关内容