我有以下json请求,如果我不使用任何发件人通知,它可以工作,但如果我添加发件人通知它没有,为什么?
{
"userSettings":[
{
"value":"false",
"name":"allowSendOnBehalfOf"
}
],
"signerEmailNotifications":{
"envelopeActivation":"false",
"envelopeComplete":"false",
"carbonCopyNotification":"false",
"certifiedDeliveryNotification":"false",
"envelopeDeclined":"false",
"envelopeVoided":"false",
"envelopeCorrected":"false",
"reassignedSigner":"false",
"purgeDocuments":"false",
"faxReceived":"false",
"documentMarkupActivation":"false",
"agentNotification":"false"
},
"senderEmailNotifications":{
"envelopeComplete":"false",
"changedSigner":"false",
"senderEnvelopeDeclined":"false",
"withdrawnConsent":"false",
"recipientViewed":"false",
"deliveryFailed":"false"
}
}"
答案 0 :(得分:2)
从您的请求中删除最终"
,它适用于我。
{
"userSettings":[
{
"value":"false",
"name":"allowSendOnBehalfOf"
}
],
"signerEmailNotifications":{
"envelopeActivation":"false",
"envelopeComplete":"false",
"carbonCopyNotification":"false",
"certifiedDeliveryNotification":"false",
"envelopeDeclined":"false",
"envelopeVoided":"false",
"envelopeCorrected":"false",
"reassignedSigner":"false",
"purgeDocuments":"false",
"faxReceived":"false",
"documentMarkupActivation":"false",
"agentNotification":"false"
},
"senderEmailNotifications":{
"envelopeComplete":"false",
"changedSigner":"false",
"senderEnvelopeDeclined":"false",
"withdrawnConsent":"false",
"recipientViewed":"false",
"deliveryFailed":"false"
}
}
离开"在那里你会收到一条错误消息,表明你的请求在JSON关闭后有其他文本
{
errorCode: "INVALID_REQUEST_BODY"
message: "The request body is missing or improperly formatted. Additional text encountered after finished reading JSON content: \". Path '', line 30, position 2."
}