Profile

성빈이의 기록장

성빈이

[Jackson] Cannot deserialize value of type from Object value (token JsonToken.START_OBJECT) 해결법

728x90
  • Globally enable DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY
  • Add annotation @JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY) on specific property

 

1

 

2

 

이처럼 해본다.

 

 

관련 내용: https://github.com/FasterXML/jackson-databind/issues/3135