Postman 需要取得文件结尾

wj8zmpe1  于 2022-11-07  发布在  Postman
关注(0)|答案(1)|浏览(208)

我在一个 Postman 请求中使用了以下JSON主体,但我收到了一个END OF FILE Expected错误:

"customer": {
"gender": 1,
"company": "MyCompany",
"name": "Doe",
"firstname": "John",
"phone": "0606060606"
,
"address": {
"address": "123 main street",
"address2": "456 second street",
"postalCode": 17101,
"city": "Anytown",
"country": "UK"
},
"references": [
123458,
154568
]
}
iih3973s

iih3973s1#

json对象应该以{开头,以}结尾。您应该具有:

{
    "customer": {
        "gender": 1,
        "company": "MyCompany",
        "name": "Doe",
        "firstname": "John",
        "phone": "0606060606",
        "address": { 
            "address": "123 main street",
            "address2": "456 second street",
            "postalCode": 17101,
            "city": "Anytown",
            "country": "UK" 
            },
            "references": [ 123458, 154568 ] 
     }
 }

相关问题