我向我的机器发出命令tree -J
,这是它给出的输出的一部分:
{
"type": "file",
"name": "ca-certificates.conf"
},
{
"type": "file",
"name": "ca-certificates.conf.dpkg-old"
},
{
"type": "directory",
"name": "chatscripts"
} {
"error": "error opening dir"
},
{
"type": "directory",
"name": "chromium",
"contents": [{
"type": "directory",
"name": "native-messaging-hosts"
}]
}
查看那个“错误”节点:它似乎不是有效的 Json(,
缺少 a)。如何避免显示此类错误?
使用v2.0.2