java如何在Android中解析字符串和数组JSON数据
我需要解析以下JSON文本,才能在我的Android应用程序标题(主标题)和标题(子标题)、说明、imageHref中找到它们
{
"title":"Flowers",
"rows":[
{
"title":"Azalea",
"description":"Beautiful large royal purple flowers adorn attractive satiny green leaves that turn orange/red in cold weather. Grows to up to 18 feet, or prune annually to shorten.",
"imageHref":"http://...../../b/california_snow.jpg"
},
{
"title":"Tibouchina",
"description":"Blooms in summer, 20-35 inches high. Fertilize regularly for best results. Full sun, drought tolerant.",
"imageHref":"http://...../../b/california_snow.jpg"
}
}
请帮我获取所需的代码。我正在使用JSONparser
# 1 楼答案
试用