I want to write string request in below Json. At first there is two JSONobject and after that i have another seperate JSONarray

Viewed 20

Can i get StringRequest code for below JSON format in JAVA for android studio? Below in picture is my android code.

{ "total_debit": 6000, "total_credit": 700000 }[ { "cash_id": "36", "cash_date": "2022-09-12", "cash_name": "Shyam", "cash_description": "payment", "cash_type": "Debit", "cash_amount": "6000" }, { "cash_id": "35", "cash_date": "2022-09-12", "cash_name": "Ram", "cash_description": "carpet payment", "cash_type": "Credit", "cash_amount": "300000" }, { "cash_id": "34", "cash_date": "2022-09-12", "cash_name": "Hari", "cash_description": "payment", "cash_type": "Credit", "cash_amount": "130000" }, { "cash_id": "33", "cash_date": "2022-09-12", "cash_name": "Shyam", "cash_description": "payment", "cash_type": "Credit", "cash_amount": "50000" }, { "cash_id": "31", "cash_date": "2022-09-12", "cash_name": "Shyam", "cash_description": "payment", "cash_type": "Credit", "cash_amount": "100000" }, { "cash_id": "30", "cash_date": "2022-09-12", "cash_name": "Shyam", "cash_description": "paymententer image description here", "cash_type": "Debit", "cash_amount": "120000" } ]

0 Answers
Related