用于测试 JsonAnalyzer2 1.01版的测试用例

14.

原文={"animal":"ca,t","color":"ora:nge","isMale":true,"sn":987621,"pak":null,rate:22.345,}
内部排序后文本:
{
    "animal":"ca,t",
    "color":"ora:nge",
    "isMale":true,
    "pak":null,
    "sn":987621,
    rate:22.345
}

13.

原文={    "HeWeather6":[        {                        "status":"ok",            "update":{                "loc":"2017-10-2623-09",                "utc":"2017-10-2615-09"            }        }    ]}
内部排序后文本:
{
    "HeWeather6":[
        {
            "status":"ok",
            "update":{
                "loc":"2017-10-2623-09",
                "utc":"2017-10-2615-09"
            }
        }
    ]
}

12.

原文={    "type": "object",    "properties": {        "first_name": { "type": "string" },        "last_name": { "type": "string" },        "age": { "type": "integer" },        "club": {            "type": "object",            "properties": {                "name": { "type": "string" },                "founded": { "type": "integer" }            },            "required": ["name"]        }    },    "required": ["first_name", "last_name", "age", "club"]}
内部排序后文本:
{
    "properties":{
        "age":{
            "type":"integer"
        },
        "club":{
            "properties":{
                "founded":{
                    "type":"integer"
                },
                "name":{
                    "type":"string"
                }
            },
            "required":[
                "name"
            ],
            "type":"object"
        },
        "first_name":{
            "type":"string"
        },
        "last_name":{
            "type":"string"
        }
    },
    "required":[
        "first_name",
        "last_name",
        "age",
        "club"
    ],
    "type":"object"
}

11.

原文={    "data": [        {            "deliveryListId": "20180001",            "shipperCode": "0030",            "shortShipperName": "RB",            "orderNo": "102018032001",            "deliveryOrder": 1,            "receiverName": "吉田 XXX",            "receiverTelNo": "07012340303",            "receiverAddress1": "東京都足立区足立1-1",            "receiverAddress2": "東京都足立区足立1-2",            "isCod": true,            "billAmount": 5,            "geocodingScore": 50,            "latitudeJP": "56789.33",            "longitudeJP": "123456.33",            "latitude": "20180001.22",            "longitude": "20180001.33",            "vehicleId": "239",            "orderDetails": [                {                    "trackingNo": "201803200001",                    "quantity": 1,                    "lapCount": null,                    "statusCode": null,                    "statusNameMobile": null                },                {                    "trackingNo": "201803200002",                    "quantity": 1,                    "lapCount": 4,                    "statusCode": "100",                    "statusNameMobile": "配送準備中"                },                {                    "trackingNo": "201803200003",                    "quantity": 1,                    "lapCount": 4,                    "statusCode": "300",                    "statusNameMobile": "持出し"                },                {                    "trackingNo": "201803200004",                    "quantity": 1,                    "lapCount": 4,                    "statusCode": "100",                    "statusNameMobile": "配送準備中"                },                {                    "trackingNo": "201803200005",                    "quantity": 1,                    "lapCount": 4,                    "statusCode": "100",                    "statusNameMobile": "配送準備中"                }            ]        }    ]}
内部排序后文本:
{
    "data":[
        {
            "billAmount":5,
            "deliveryListId":"20180001",
            "deliveryOrder":1,
            "geocodingScore":50,
            "isCod":true,
            "latitude":"20180001.22",
            "latitudeJP":"56789.33",
            "longitude":"20180001.33",
            "longitudeJP":"123456.33",
            "orderDetails":[
                {
                    "lapCount":null,
                    "quantity":1,
                    "statusCode":null,
                    "statusNameMobile":null,
                    "trackingNo":"201803200001"
                },
                {
                    "lapCount":4,
                    "quantity":1,
                    "statusCode":"100",
                    "statusNameMobile":"配送準備中",
                    "trackingNo":"201803200002"
                },
                {
                    "lapCount":4,
                    "quantity":1,
                    "statusCode":"300",
                    "statusNameMobile":"持出し",
                    "trackingNo":"201803200003"
                },
                {
                    "lapCount":4,
                    "quantity":1,
                    "statusCode":"100",
                    "statusNameMobile":"配送準備中",
                    "trackingNo":"201803200004"
                },
                {
                    "lapCount":4,
                    "quantity":1,
                    "statusCode":"100",
                    "statusNameMobile":"配送準備中",
                    "trackingNo":"201803200005"
                }
            ],
            "orderNo":"102018032001",
            "receiverAddress1":"東京都足立区足立1-1",
            "receiverAddress2":"東京都足立区足立1-2",
            "receiverName":"吉田 XXX",
            "receiverTelNo":"07012340303",
            "shipperCode":"0030",
            "shortShipperName":"RB",
            "vehicleId":"239"
        }
    ]
}

10.

原文={    "HeWeather6": [{        "basic": {            "cid": "CN101010100",            "location": "北京",            "parent_city": "北京",            "admin_area": "北京",            "cnty": "中国",            "lat": "39.90498734",            "lon": "116.40528870",            "tz": "8.0"        },        "daily_forecast": [{            "cond_code_d": "103",            "cond_code_n": "101",            "cond_txt_d": "晴间多云",            "cond_txt_n": "多云",            "date": "2017-10-26",            "hum": "57",            "pcpn": "0.0",            "pop": "0",            "pres": "1020",            "tmp_max": "16",            "tmp_min": "8",            "uv_index": "3",            "vis": "16",            "wind_deg": "0",            "wind_dir": "无持续风向",            "wind_sc": "微风",            "wind_spd": "5"        }, {            "cond_code_d": "101",            "cond_code_n": "501",            "cond_txt_d": "多云",            "cond_txt_n": "",            "date": "2017-10-27",            "hum": "56",            "pcpn": "0.0",            "pop": "0",            "pres": "1018",            "tmp_max": "18",            "tmp_min": "9",            "uv_index": "3",            "vis": "20",            "wind_deg": "187",            "wind_dir": "南风",            "wind_sc": "微风",            "wind_spd": "6"        }, {            "cond_code_d": "101",            "cond_code_n": "101",            "cond_txt_d": "多云",            "cond_txt_n": "多云",            "date": "2017-10-28",            "hum": "26",            "pcpn": "0.0",            "pop": "0",            "pres": "1029",            "tmp_max": "17",            "tmp_min": "5",            "uv_index": "2",            "vis": "20",            "wind_deg": "2",            "wind_dir": "北风",            "wind_sc": "3-4",            "wind_spd": "19"        }],        "status": "ok",        "update": {            "loc": "2017-10-26 23:09",            "utc": "2017-10-26 15:09"        }    }]}
内部排序后文本:
{
    "HeWeather6":[
        {
            "basic":{
                "admin_area":"北京",
                "cid":"CN101010100",
                "cnty":"中国",
                "lat":"39.90498734",
                "location":"北京",
                "lon":"116.40528870",
                "parent_city":"北京",
                "tz":"8.0"
            },
            "daily_forecast":[
                {
                    "cond_code_d":"103",
                    "cond_code_n":"101",
                    "cond_txt_d":"晴间多云",
                    "cond_txt_n":"多云",
                    "date":"2017-10-26",
                    "hum":"57",
                    "pcpn":"0.0",
                    "pop":"0",
                    "pres":"1020",
                    "tmp_max":"16",
                    "tmp_min":"8",
                    "uv_index":"3",
                    "vis":"16",
                    "wind_deg":"0",
                    "wind_dir":"无持续风向",
                    "wind_sc":"微风",
                    "wind_spd":"5"
                },
                {
                    "cond_code_d":"101",
                    "cond_code_n":"501",
                    "cond_txt_d":"多云",
                    "cond_txt_n":"",
                    "date":"2017-10-27",
                    "hum":"56",
                    "pcpn":"0.0",
                    "pop":"0",
                    "pres":"1018",
                    "tmp_max":"18",
                    "tmp_min":"9",
                    "uv_index":"3",
                    "vis":"20",
                    "wind_deg":"187",
                    "wind_dir":"南风",
                    "wind_sc":"微风",
                    "wind_spd":"6"
                },
                {
                    "cond_code_d":"101",
                    "cond_code_n":"101",
                    "cond_txt_d":"多云",
                    "cond_txt_n":"多云",
                    "date":"2017-10-28",
                    "hum":"26",
                    "pcpn":"0.0",
                    "pop":"0",
                    "pres":"1029",
                    "tmp_max":"17",
                    "tmp_min":"5",
                    "uv_index":"2",
                    "vis":"20",
                    "wind_deg":"2",
                    "wind_dir":"北风",
                    "wind_sc":"3-4",
                    "wind_spd":"19"
                }
            ],
            "status":"ok",
            "update":{
                "loc":"2017-10-26 23:09",
                "utc":"2017-10-26 15:09"
            }
        }
    ]
}

09.

原文={ "name": "username", "age": 20, "admin": true }
内部排序后文本:
{
    "admin":true,
    "age":20,
    "name":"username"
}

08.

原文={"employees": [{ "firstName":"Bill" , "lastName":"Gates" },{ "firstName":"George" , "lastName":"Bush" },{ "firstName":"Thomas" , "lastName":"Carter" }]}
内部排序后文本:
{
    "employees":[
        {
            "firstName":"Bill",
            "lastName":"Gates"
        },
        {
            "firstName":"George",
            "lastName":"Bush"
        },
        {
            "firstName":"Thomas",
            "lastName":"Carter"
        }
    ]
}

07.

原文={"scores":[128,113,105,120,100]}
内部排序后文本:
{
    "scores":[
        128,
        113,
        105,
        120,
        100
    ]
}

06.

原文={"students":["张三","李四","王五","赵六","孙琪","钱吧"]}
内部排序后文本:
{
    "students":[
        "张三",
        "李四",
        "王五",
        "赵六",
        "孙琪",
        "钱吧"
    ]
}

05.

原文={"eggCartoon":["egg","egg","egg","egg","egg","egg","egg",null,"egg",null,"egg",]}
内部排序后文本:
{
    "eggCartoon":[
        "egg",
        "egg",
        "egg",
        "egg",
        "egg",
        "egg",
        "egg",
        null,
        "egg",
        null,
        "egg"
    ]
}

04.

原文={"person":{    "name":"Lindsay Bassett",    "heightInInches":66,    "head":{    "hair":{        "color":"light blood",        "length":"short",        "style":"a-line"    },    "eyes":"green"    }}}
内部排序后文本:
{
    "person":{
        "head":{
            "eyes":"green",
            "hair":{
                "color":"light blood",
                "length":"short",
                "style":"a-line"
            }
        },
        "heightInInches":66,
        "name":"Lindsay Bassett"
    }
}

03.

原文={"name":"Flutty","breed":"Siamese","age":2}
内部排序后文本:
{
    "age":2,
    "breed":"Siamese",
    "name":"Flutty"
}

02.

原文={"animal":"cat","color":"orange"}
内部排序后文本:
{
    "animal":"cat",
    "color":"orange"
}

01.

原文={    "status": "0000",    "message": "success",    "data": {        "title": {           "id": "001",            "name" : "白菜"        },        "content": [            {                "id": "001",                "value":"你好 白菜"            },            {                "id": "002",                 "value":"你好 萝卜"             }        ]    }}
内部排序后文本:
{
    "data":{
        "content":[
            {
                "id":"001",
                "value":"你好 白菜"
            },
            {
                "id":"002",
                "value":"你好 萝卜"
            }
        ],
        "title":{
            "id":"001",
            "name":"白菜"
        }
    },
    "message":"success",
    "status":"0000"
}

--2020年5月25日--

原文地址:https://www.cnblogs.com/heyang78/p/12956735.html