轉json
ArrayList list = (ArrayList) JSON.parse(CommomDataManager.getAlipay_account());
for (int i = 0;i < list.size();i++ ) {
Map map = (Map) list.get(i);
}
跳轉取值
//上個界面跳轉
Intent intent = new Intent(this,NoticeActivity.class);
intent.putExtra("shouldRepayAmount",String.valueOf(info.totalRepayAmount));
startActivity(intent);
//下個界面取值
shouldRepayAmount = getIntent().getStringExtra("shouldRepayAmount");
FastJson 轉數組嵌套字典的字符串
JSONArray list = JSONObject.parseArray(CommomDataManager.getAlipay_account());
for (int i = 0;i < list.size();i++ ) {
Map map = (Map) list.get(i);
map.get("name");
}