发送嵌套对象作为发布请求

时间:2020-04-15 19:19:10

标签: javascript node.js express http

我正尝试将其作为POST请求发送到快递服务器:

{
    "name": "Turnê Estadual AngloGold Ashanti - Raposos/MG - The Beatles Vol. 2",
    "tour": "#D79B07",
    "date": "2020-05-17T00:00:00-03:00",
    "hour": {
        "start": "2020-05-17T18:00:00-03:00",
        "end": "2020-05-17T19:00:00-03:00",
    },
    "local": "Raposos/MG",
    "address": "",
    "location": {
        "type": "Point",
        "coordinates": [-73.97, 40.77]
    },
    "duration": "70 minutos",
    "classification": "Livre",
    "description": "Em breve, mais informações."
}

而我将其作为错误SyntaxError: Unexpected token } in JSON at position 256<br> &nbsp; &nbsp;at JSON.parse (&lt;anonymous&gt;)<br>

有人知道如何解决吗?

0 个答案:

没有答案