Why List of HTTP status codes Appears when JSON.parse is Used in nodejs inside

  node.js, question

The data passed from the foreground page is a string, which needs nodejs to convert into Json format in the background, but if JSON.parse is used, an error will be reported, Why is this?

router.route('/post').get(function(req,res,next){
 res.render('post',{title:'POST'})
 }).post(function(req,res,next){
 var path=req.body.path;
 var param=JSON.parse(req.body.param);
 var options={
 Url:'http://api.fanfou.com/' plus path.
 oauth_token:token,
 oauth_token_secret:secret,
 parameters:param
 bracket
 oa.post(options,function(error,data){
 if(error)
 bracket
 res.json({
 error:error
 });
 bracket
 else{
 res.json({
 result:data
 });
 bracket
 });
 });

Ajax inside’s Data

data:{
 path:'statuses/update.json',
 param:"{'status':'jjjjjjj'}"
 bracket

Of course, because json only knows"Double quotes, don’t know single quotes, change your data to

data:{
 path:'statuses/update.json',
 param: '{"status":"jjjjjjj"}'
 bracket

Try again