써먹는 웹개발

[Tip] Postman에 요청 페이로드 파라미터 추가하는 방법 본문

웹개발/Tip

[Tip] Postman에 요청 페이로드 파라미터 추가하는 방법

kmhan 2022. 10. 20. 14:11


728x90
반응형

Postman을 사용하다가 "Json parse error : Cannot deserialize instance of `java.util.ArrayList<java.lang.Object>` out of START_OBJECT token" 에러가 난 적이 있는 경우에 해결방법입니다.

 

1-1. 기존 파라미터

1
2
3
{
 0:"aa0ba9c045e2ed35590ffcd24ba4796d142a400978293c24c6299754c4c35b05"
}
cs

1-2. 에러메시지

1
2
3
4
5
6
7
{
    "timestamp": 1666239404808,
    "status": 400,
    "error": "Bad Request",
    "message": "JSON parse error: Cannot deserialize instance of `java.util.ArrayList<java.lang.Object>` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.util.ArrayList<java.lang.Object>` out of START_OBJECT token\n at [Source: (PushbackInputStream); line: 1, column: 1]",
    "path": "/server/api/macList"
}
cs

 

 

2-1. 해결 방법

(크롬 디버깅 창 > 네트워크 > 해당 이름의) 페이로드 선택후에 소스 보기를 선택하고 그대로 복사해서 붙여 넣으면 된다.

2-2. 변경후 파라미터

1
["cb1bfc6ec17bdfde5325d6df6e0af6499a6fc5d8b935f4965a356a87bfd1e7e6"]
cs

728x90
반응형


Comments