【发布时间】:2015-03-14 00:04:17
【问题描述】:
我有这个 JSON 文件:https://gist.github.com/ty221/70f9d71e55ce9bc36bd5
我想使用 Jekyll 加载它。不幸的是,但 JSONLint.com 在我的代码中有语法错误。没错,就是:
{
"name": "Nguyen Thi Thao Nguyen",
"website": "",
"interests": "- Learn more information about free and open software",
"org": " a:2:{i:0;s:48:\"- Vietnam National University - Ho Chi Minh City\";i:1;s:33:\"University of Economics and Law.\";} " //there is an error!!!
},
错误是:
Parse error on line 420:
...re", "org": " a:2:{i:
----------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
我不确定是什么导致了错误。一切都是反斜杠,有逗号等。你能给我任何建议吗?
【问题讨论】:
-
当我删除
//there is an error!!!时得到Valid JSON -
@BilltheLizard rlemon 是对的,但您必须从要点中复制而不是从问题中复制才能看到选项卡。