私はアンドロイドプロジェクトに取り組んでいます.Jsonが必要とするデータに従って複数の画像を表示したい、jsonはネストされた配列で構成されています。アンドロイドスタジオで入れ子にされたjsonを解析する方法は?
[
{
"post_images":[
{
"message_image_id":"17",
"image_name":"rlvezdcuorfuhkr8nluc",
"cdn_public_id":null,
"image_description":null,
"message_id":"24",
"width":"960",
"height":"959",
"comment_count":"1",
"like_count":"0",
"unlike_count":"0",
"share_count":"0",
"description":null,
"is_shared_product":"0",
"shared_with":"1",
}
]
}
{
"post_images":[
{
"message_image_id":"9",
"image_name":"pleyat8ghaaocvipvre2",
"cdn_public_id":null,
"image_description":null,
"message_id":"23",
"width":"596",
"height":"411",
"comment_count":"0",
"like_count":"0",
"unlike_count":"0",
"share_count":"0",
"description":null,
"is_shared_product":"0",
"shared_with":"1",
}
{
"message_image_id":"10",
"image_name":"jjtcdum8kksseuo5cuaa",
"cdn_public_id":null,
"image_description":null,
"message_id":"23",
"width":"588",
"height":"567",
"comment_count":"0",
"like_count":"0",
"unlike_count":"0",
"share_count":"0",
"description":null,
"is_shared_product":"0",
"shared_with":"1",
}
{
"message_image_id":"11",
"image_name":"w6guovyarum7cnmfxn1u",
"cdn_public_id":null,
"image_description":null,
"message_id":"23",
"width":"960",
"height":"768",
"comment_count":"0",
"like_count":"0",
"unlike_count":"0",
"share_count":"0",
"description":null,
"is_shared_product":"0",
"shared_with":"1",
"is_classified_images":"0"
}
{
"message_image_id":"12",
"image_name":"cir6zphicl6lq4iirz7h",
"cdn_public_id":null,
"image_description":null,
"message_id":"23",
"width":"900",
"height":"558",
"comment_count":"0",
"like_count":"0",
"unlike_count":"0",
"share_count":"0",
"description":null,
"is_shared_product":"0",
"shared_with":"1",
}
]
}
{
"post_images":[
{
"message_image_id":"6",
"image_name":"mhajt2jifnkucrmgsk6v",
"cdn_public_id":null,
"image_description":null,
"message_id":"22",
"width":"547",
"height":"590",
"comment_count":"1",
"like_count":"0",
"unlike_count":"0",
"share_count":"0",
"description":null,
"is_shared_product":"0",
"shared_with":"1",
}
{
"message_image_id":"7",
"image_name":"sxdfvo7qfvewmm85ufsf",
"cdn_public_id":null,
"image_description":null,
"message_id":"22",
"width":"596","height":"547",
"comment_count":"0",
"like_count":"0",
"unlike_count":"0",
"share_count":"0",
"description":null,
"is_shared_product":"0",
"shared_with":"1",
}
{
"message_image_id":"8",
"image_name":"mrvzu4npy8a4ydl8rsnk",
"cdn_public_id":null,
"image_description":null,
"message_id":"22",
"width":"826","height":"562",
"comment_count":"0",
"like_count":"0",
"unlike_count":"0",
"share_count":"0",
"description":null,
"is_shared_product":"0",
"shared_with":"1",
}
]
}
]