如何使用javascript和jquery

时间:2015-12-04 06:10:56

标签: javascript jquery json

我想使用javascript和jquery

将以下json数据转换为无序列表
 var dataSource = ({
        "Items": ({
               "Juice": ({
                "Mango": "Mango",
                "Berry": "Berry",
                "Grapes": "Grapes",
                "Wine": ({
                    "Rose": "Rose",
                    "Red wine": "Red",
                    "Apple": "Apple",
                    "Hard drinks": ({
                        "Royal challenge": "Royal challenge",
                        "Blender's Pride": "Blender's Pride"
                    })
                })
            })

        })
    });

1 个答案:

答案 0 :(得分:-1)

问题已在堆栈溢出中得到解答。请点击以下链接。

Generate unordered list from JSON Data?

干杯, 桑杰