{“4255”:“Alpine 50W x 4Apple®iPod®-Ready In-Dash CD Deck”,“4254”:“具有可拆卸面板的Alpine 50W x 4 In-Dash CD卡座”,“4251”:“ Alpine 50W x 4Apple®iPod®-/ Satellite Radio- / HD Radio-Ready Marine CD Deck“,”4256“:”Alpine 50W x4Apple®iPod®-Ready In-Dash CD Deck“,”9839“:” Boss Marine 10 \“Marine Single-Voice-Coil 4-Ohm Subwoofer”,“12433”:“Alpine Type R 10 \”Dual-Voice-Coil 8-Ohm Subwoofer“,”12428“:”Alpine 12 \“Single- Voice-Coil 4-Ohm重低音扬声器“}
我是否需要将我的json数据转换为其他格式,或者是否适合通过ajax访问?
答案 0 :(得分:1)
大多数实际的浏览器都支持此方法:
var json = JSON.parse('{"4255":"Alpine 50W x 4 Apple® iPod®-Ready In-Dash CD Deck","4254":"Alpine 50W x 4 In-Dash CD Deck with Detachable Faceplate","4251":"Alpine 50W x 4 Apple® iPod®-/Satellite Radio-/HD Radio-Ready Marine CD Deck","4256":"Alpine 50W x 4 Apple® iPod®-Ready In-Dash CD Deck","9839":"Boss Marine 10\" Marine Single-Voice-Coil 4-Ohm Subwoofer","12433":"Alpine Type R 10\" Dual-Voice-Coil 8-Ohm Subwoofer","12428":"Alpine 12\" Single-Voice-Coil 4-Ohm Subwoofer"}');