私のアプリケーションでは、Json を使用しました。これは、アプリケーションでの JSON 応答です。
This is my Response:
[
{
"response": "Success",
"errorMsg": "",
"userId": "1",
"userCompany": "xxxyy",
"userName": "sham",
"userAddress": "chennai",
"userCity": "xxxxx",
"userMobile": "xxxx",
"userEmail": "xxx"
},
{
"response": "Success",
"errorMsg": "",
"productImage": "http://www.iii.jpg",
"productDescription": "Loaded box on pallets - Bart's package",
"productCost": "10",
"productBoxWeight": "10.0"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "1.4",
"transportCountry": "Colombia",
"transportPort": "Havana"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "0.7",
"transportCountry": "Brazil",
"transportPort": "Santos"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "0.9",
"transportCountry": "South Africa",
"transportPort": "Durban"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "0.9",
"transportCountry": "Chili",
"transportPort": "San Antonio"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "2.7",
"transportCountry": "Australia",
"transportPort": "Maersk"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "1",
"transportCountry": "Marocco",
"transportPort": "Casablanca"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "1",
"transportCountry": "Kuwait",
"transportPort": "Shuwaikh"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "1",
"transportCountry": "Jordan",
"transportPort": "Aqaba"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "0.8",
"transportCountry": "Saoudi Arabia",
"transportPort": "Jeddah"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "0.8",
"transportCountry": "Malta",
"transportPort": "Maraxklokk"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "0.9",
"transportCountry": "Mexico",
"transportPort": "Veracruz"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "1.2",
"transportCountry": "Thailand",
"transportPort": "Bangkok"
},
{
"response": "Success",
"errorMsg": "",
"transportCost": "1",
"transportCountry": "Thailand",
"transportPort": "havana"
}
]
ある配列で最初の 2 つのセットを取得し、別の配列で他のセットを取得するにはどうすればよいですか...これは初めてなので、修正してください...