json数据中含有array返回类型的怎么解析?

[

{
    "dish_dishname": "冰冻草莓牛奶",
    "dish_specdishprice": {
        "小杯": 600,
        "中杯": 800,
        "大杯": 1000,
        "超大杯": 1500,
        "情侣杯": 2000,
        "全家杯": 2500
    },
    "specname": [
        "小杯",
        "中杯",
        "大杯",
        "超大杯",
        "情侣杯",
        "全家杯"
    ],
    "specprice": [
        600,
        800,
        1000,
        1500,
        2000,
        2500
    ]
},
{
    "dish_dishname": "冰淇淋",
    "dish_specdishprice": {
        "牛肉味": 800,
        "狗屎味": 1200,
        "汽油味": 1400,
        "橡胶味": 600,
        "苦瓜味": 1000
    },
    "specname": [
        "牛肉味",
        "狗屎味",
        "汽油味",
        "橡胶味",
        "苦瓜味"
    ],
    "specprice": [
        800,
        1200,
        1400,
        600,
        1000
    ]
}

]

这种json数据怎么解析啊?有代码解释的最好,非常感谢!

查看回复