当前位置: 代码迷 >> J2EE >> 怎么用json-lib、fastjson解析这种复合类型对象
  详细解决方案

怎么用json-lib、fastjson解析这种复合类型对象

热度:50   发布时间:2016-04-17 23:40:12.0
如何用json-lib、fastjson解析这种复合类型对象
数据格式如下——
{
    "requestId": 63,
    "callBack": "http://192.168.17.57:8880/activation-engine/responseApi/account",
    "createdTime": 1398431223,
    "customer": {
        "id": 111357,
        "name": "China cc com",
        "customerCode": "024014",
        "contract": {
            "id": 111357,
            "resource": {
                "siteURL": "china.com"
            },
            "components": [
                {
                    "name": "qq",
                    "activationUrl": "http://192.168.17.57:8880/mis-middleware/api/activate",
                    "property": {
                        "1": "1",
                        "2": "3,4,5",
                        "3": "6",
                        "4": "8",
                        "5": "20",
                        "6": "22",
                        "7": "23",
                        "8": "25,26,258,259",
                        "9": "27",
                        "10": "28",
                        "11": "30",
                        "12": "397",
                        "13": "35,36,37,38,405,406,407,408",
                        "14": "39",
                        "15": "42,43",
                        "16": "44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64",
                        "17": "65",
                        "18": "66",
                        "19": "68",
                        "20": "338",
                        "22": "74",
                        "23": "76,77,78",
                        "24": "79,80,81",
                        "25": "82",
                        "27": "85",
                        "28": "87",
  相关解决方案