bodyParser.json()不解码深度?

时间:2016-04-22 07:19:10

标签: json node.js http express decode

我使用bodyParser.json()来解析application/x-www-form-urlencoded; charset=UTF-8请求,但我发现req.body对象没有深度解码,它就像:

 var a = {
  total: '143.0',
  delivery_time: '0',
  utime: '1461302812',
  wm_poi_name: '%E5%B9%B8%E7%A6%8F%E8%A5%BF%E9%A5%BC'
};

我该如何解决?

0 个答案:

没有答案