前后台交互常用到的json格式模板

走在前端的大道上—— json 格式模板

{
    "status": 1,
    "result": {
        "totalMoney": 59,
        "list": [
            {
                "productId": "600100002115",
                "productName": "黄鹤楼香烟",
                "productPrice": 19,
                "productQuentity": 1,
                "productImage": "img/goods-1.jpg",
                "parts": [
                    {
                        "partsId": "10001",
                        "partsName": "打火机"
                    }
                ]
            },
            {
                "productId": "600100002120",
                "productName": "加多宝",
                "productPrice": 8,
                "productQuentity": 5,
                "productImage": "img/goods-2.jpg",
                "parts": [
                    {
                        "partsId": "20001",
                        "partsName": "吸管"
                    }
                ]
            }
        ]
    },
    "message": ""
}
    原文作者:于梦中2010
    原文地址: https://segmentfault.com/a/1190000008754219
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞