获取JSON:意外的输入结束:调用api时ARRAY的预期关闭标记

时间:2015-06-06 12:58:21

标签: java json node.js spring api

您好我正在向api发送帖子请求并收到以下错误:

org.springframework.http.converter.HttpMessageNotReadableException: Could    not read JSON: Unexpected end-of-input: expected close marker for ARRAY (from [Source: org.apache.catalina.connector.CoyoteInputStream@14513dad; line: 1, column: 27547])\\n at [Source: org.apache.catalina.connector.CoyoteInputStream@14513dad; line: 1, column: 48081] (through reference chain: com.proptiger.core.model.notification.external.NotificationCreatorServiceRequest[\\\"details\\\"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input: expected close marker for ARRAY

我发送的json内容为

的大json数据
{
  "sample": "default",
  "data": [ 
    { "email": "dadsad@dasd.com"}
  ],
  "details": [
    {
      "type": "mailer",
      "subject": "xyz adsdsdsad dasdlkjdljkaskd",
      "body": "<style type=\"text/css\">\n"
    }
  ]
}

我曾经从我的节点js post请求成功调用此api但突然间我收到此错误我在stringify响应中发送此错误,当我尝试从日志文件中收集的json数据再次发送请求时它发送它完美,可能存在内容问题,或者如果数据长度太长,我无法找到任何帮助,我们将不胜感激。

0 个答案:

没有答案