如何使用字符串msg和JsonObject从翻新响应中获取数据

时间:2019-10-11 11:15:15

标签: android

从翻新响应中获取包含字符串msg以及JsonObject和JsonArray的数据

server Response{
        "msg": "code is valid",
        "productInfo": {
            "name": "AC",
            "description": "Product AC",
            "companyName": "MITSUBISHI",
            "brandName": "MITSUBISHI",
            "batchNumber": "123131131",
            "serialNumber": "12132133232222",
            "manufactureDate": "2019-10-11T09:47:33.425Z",
            "expireDate": "2019-10-11T09:47:33.425Z",
            "otherAttributes": [
                {
                    "fieldName": "power",
                    "fieldType": "electricity",
                    "fieldValue": "1200W"
                }, ]}}

0 个答案:

没有答案