{
"hintsacross":
[ { "number":"1" , "hinttext":"Hurt", "hintsquare":"A1" },
{ "number":"5" , "hinttext":"Make a selection", "hintsquare":"A6" },
{ "number":"8" , "hinttext":"Frank", "hintsquare":"A10" }
] ,
"hintsdown":
[ { "number":"1" , "hinttext":"First Greek letter", "hintsquare":"A1" },
{ "number":"2" , "hinttext":"Used footnotes", "hintsquare":"A2" },
{ "number":"3" , "hinttext":"Listened to", "hintsquare":"A3" }
]
}
由于某种原因,PHP 的 json_decode 没有解码这个 JSON。
提前致谢...
PS 当第 25 行运行时出现错误:
$temp = json_decode($obj->hints,true);
解析错误:语法错误,第25行C:\Program Files (x86)\Zend\Apache2\htdocs\crosswords\query.blockouts.php中的意外 'hintscross' (T_STRING)
我通过 JSONlint 验证了我的 JSON,并且出现了解析错误。