Unable to send numbers using res.send() using express with node

前端 未结 3 715
鱼传尺愫
鱼传尺愫 2020-12-19 03:31

I am trying to get the \"imdb rating\" using express in node and I am struggling.

movies.json

[{
\"id\": \"3962210\",
\"order\": [4.         


        
3条回答
  •  無奈伤痛
    2020-12-19 04:15

    Integer is not valid for res.send() so convert it to string.

    res.send(value.toString())
    

提交回复
热议问题