{
"id": 1001,
"text": "Core Java - Collections",
"description": "public static void main(String args[ ]) { \n int x =10;\n}",
"passingScore": 10,
"totalQuestions": 20,
"technologyId": 10,
"subTechnologyId": 101
}{ // fails on this line
"id": 1000,
"text": "Core Java",
"description": "public static void main(String args[ ]) { \n int x =10;\n}",
"passingScore": 10,
"totalQuestions": 5,
"technologyId": 10,
"subTechnologyId": 100
}
我沒有看到上述JSON的任何錯誤,但不知何故失敗。任何人都可以幫我找出錯誤嗎?以下JSON有什麼問題?
是什麼讓你認爲「失敗」? (天哪 - 網上1分鐘:你錯過了逗號。) – usr2564301 2014-09-19 21:45:18
兩個「對象」之間沒有逗號,也沒有周圍的「數組」。去json.org學習JSON語法 - 它只需要5-10分鐘。 – 2014-09-19 21:47:08
你可以嘗試驗證它在這裏:http://jsonlint.com/ – melancia 2014-09-19 21:47:41