SyntaxFix
Write A Post
Hire A Developer
Questions
Instead of the JSON document, you can update the ObjectMapper object like below :
ObjectMapper mapper = new ObjectMapper(); mapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true);