獲取錯誤獲取像上JSON驗證
解析錯誤第2行: [{ID:3306331,
--------------^ 期待 'STRING', '}'(pro.jsonlint.com)。
對此有幫助嗎?
[{ id : 3306331, values : ['012', '416', '003'], labels : ['12', 'CARIBBEAN SEA', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3306340, values : ['008', '416', '003'], labels : ['8', 'CARIBBEAN SEA', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3053686, values : ['008', '044', '003'], labels : ['8', 'NAVY', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3053680, values : ['008', '609', '003'], labels : ['8', 'RAYA LILAC SACHET', 'MEDIUM - $34.88 - Limited Stock']}, { id : 3714924, values : ['008', '120', '003'], labels : ['8', 'SWEDISH BLUE', 'MEDIUM - $34.88 - Limited Stock']}, { id : 3306329, values : ['009', '416', '003'], labels : ['9', 'CARIBBEAN SEA', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3053687, values : ['009', '044', '003'], labels : ['9', 'NAVY', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3053681, values : ['009', '609', '003'], labels : ['9', 'RAYA LILAC SACHET', 'MEDIUM - $34.88 - Limited Stock']}, { id : 3714925, values : ['009', '120', '003'], labels : ['9', 'SWEDISH BLUE', 'MEDIUM - $34.88 - Limited Stock']}, { id : 3306339, values : ['010', '416', '003'], labels : ['10', 'CARIBBEAN SEA', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3053682, values : ['010', '609', '003'], labels : ['10', 'RAYA LILAC SACHET', 'MEDIUM - $34.88 - Limited Stock']}, { id : 3714926, values : ['010', '120', '003'], labels : ['10', 'SWEDISH BLUE', 'MEDIUM - $34.88 - In Stock']}, { id : 3306330, values : ['011', '416', '003'], labels : ['11', 'CARIBBEAN SEA', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3053689, values : ['011', '044', '003'], labels : ['11', 'NAVY', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3053683, values : ['011', '609', '003'], labels : ['11', 'RAYA LILAC SACHET', 'MEDIUM - $34.88 - Limited Stock']}, { id : 3714927, values : ['011', '120', '003'], labels : ['11', 'SWEDISH BLUE', 'MEDIUM - $34.88 - Limited Stock']}, { id : 3053690, values : ['012', '044', '003'], labels : ['12', 'NAVY', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3714928, values : ['012', '120', '003'], labels : ['12', 'SWEDISH BLUE', 'MEDIUM - $34.88 - Limited Stock']}, { id : 3306332, values : ['013', '416', '003'], labels : ['13', 'CARIBBEAN SEA', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3053691, values : ['013', '044', '003'], labels : ['13', 'NAVY', 'MEDIUM - $49.99 - Limited Stock']}, { id : 3053685, values : ['013', '609', '003'], labels : ['13', 'RAYA LILAC SACHET', 'MEDIUM - $34.88 - Limited Stock']}, { id : 3714929, values : ['013', '120', '003'], labels : ['13', 'SWEDISH BLUE', 'MEDIUM - $34.88 - Limited Stock']}]
' 「3306331」'沒有必要 – mochalygin 2014-10-08 07:13:24
@AleksandrMochalygin正確地指出。更新回答 – 2014-10-08 07:16:27
@SandipPingle謝謝你的工作!但是對於鍵和值都需要雙重qoutes。 – Akan 2014-10-08 07:27:56