js怎么解析json数据?
var arr=[{"date":"04","fee":"100"},{"date":"05","fee":"50"},{"date":"06","fee":"200"},{"date":"07","fee":"1000"},{"date":"08","fee":"500"},{"date":"09","fee":"637.41"}];
怎么把上面的json数据解析.解析结果是fee中存的最大值放在第一位,也就是倒序排列,并且倒序之后要求date能够和fee匹配,
结果:{date:07,fee:1000},{date:09,fee:637.41},{date:08,fee:500},{date:06,fee:200},{date:04,fee:100},{date:05,fee:50}