JSON密钥明智的数据已分离并显示在表中

时间:2019-05-18 07:46:43

标签: json kotlin

当PartyName值更改时,我的JSON格式键为“ PartyName”,然后数据分离并在表中显示数据。

动态表,当PartyName值更改时生成。

JSON格式:

{
    "status": 1,
    "0": [
        {
            "Cmp_Name": "ABC",
            "Partyid": "18",
            "ChallanNo": "-",
            "PartyName": "PURCHASE MH",
            "FirmName": "PURCHASE MH",
            "ChallanDate": "-",
            "ChallanAmount": "0.0",
            "RecieveDate": "2019-03-15 00:00:00",
            "RecieveAmount": "4000.0",
            "DiscountAmount": "0.0",
            "TDSAmount": "0.0",
            "Bank": "AXIS BANK",
            "ChequeNo": null,
            "ChequeDate": null
        },
        {
            "Cmp_Name": "ABC",
            "Partyid": "17",
            "ChallanNo": "20",
            "PartyName": "PURCHASE GJ",
            "FirmName": "PURCHASE GJ",
            "ChallanDate": "3/11/2019",
            "ChallanAmount": "1391.0",
            "RecieveDate": "2019-03-15 00:00:00",
            "RecieveAmount": "1391.0",
            "DiscountAmount": "0.0",
            "TDSAmount": "0.0",
            "Bank": "AXIS BANK",
            "ChequeNo": "321456",
            "ChequeDate": "2019-03-15 00:00:00"
        },
        {
            "Cmp_Name": "ABC",
            "Partyid": "17",
            "ChallanNo": "20",
            "PartyName": "Dharama",
            "FirmName": "Dharama",
            "ChallanDate": "3/11/2019",
            "ChallanAmount": "1391.0",
            "RecieveDate": "2019-03-15 00:00:00",
            "RecieveAmount": "1391.0",
            "DiscountAmount": "0.0",
            "TDSAmount": "0.0",
            "Bank": "AXIS BANK",
            "ChequeNo": "321456",
            "ChequeDate": "2019-03-15 00:00:00"
        },
        {
            "Cmp_Name": "ABC",
            "Partyid": "17",
            "ChallanNo": "20",
            "PartyName": "Dharama",
            "FirmName": "Dharama",
            "ChallanDate": "3/11/2019",
            "ChallanAmount": "1391.0",
            "RecieveDate": "2019-03-15 00:00:00",
            "RecieveAmount": "1391.0",
            "DiscountAmount": "0.0",
            "TDSAmount": "0.0",
            "Bank": "AXIS BANK",
            "ChequeNo": "321456",
            "ChequeDate": "2019-03-15 00:00:00"
        }
    ]
}

0 个答案:

没有答案