{
"stocks":{
"0":{
"name":"Torn City Stock Exchange",
"acronym":"TCSE",
"director":"None",
"current_price":10018.747,
"market_cap":0,
"total_shares":0,
"available_shares":0,
"forecast":"Average",
"demand":"High"
},
"1":{
"name":"Torn City and Shanghai Banking Corporation",
"acronym":"TSBC",
"director":"Mr. Gareth Davies",
"current_price":529.863,
"market_cap":4300246833486,
"total_shares":8115771121,
"available_shares":0,
"forecast":"Average",
"demand":"High",
"benefit":{
"requirement":4000000,
"description":"Entitled to receive occasional dividends"
}
},
"2":{
"name":"Torn City Investment Banking",
"acronym":"TCB",
"director":"Mr. Paul Davies",
"current_price":502.819,
"market_cap":5771083717274,
"total_shares":11477457529,
"available_shares":1539811799,
"forecast":"Average",
"demand":"Average",
"benefit":{
"requirement":1500000,
"description":"Entitled to receive improved interest rates"
}
}
}
How can I loop through all the items with key-value pairs? I want to extract name, acronym , total shares, available_shares and demand. Please help! I'm creating a android app using java and I'm stuck here.