转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");
}