json解析例子

String json="[{"+
" \"website\":\"美团网\"" +
",\"deal_title\":\"仅39元!最高价值49元的金" +
"真子纸上烤肉单人自助午晚餐\"," +
"\"deal_url\":\"http://bj.meituan.com/deal/599295.html\"}" +
",{\"website\":\"美团网\",\"deal_title\":\"仅售148元!" +
"价值198元花蝶日本料理铁板烧单人自助餐\",\"deal_url\":" +

"\"http://bj.meituan.com/deal/174841.html\"}]"




 
    JSONArray meituanArray ;
   JSONObject oneInfo;
    

meituanArray = new JSONArray(json);
oneInfo = meituanArray.getJSONObject(0);

 
Log.e("jsonObject",  oneInfo.getString("website")  );

你可能感兴趣的:(json,String,url,website)