jackson failing to map empty array with No content to map to Object due to end of input
- by ijabz
I send a query to an api and map the json results to my classes using Jackson.
When I get some results it works fine, but when there are no results it fails with
java.io.EOFException: No content to map to Object due to end of input
at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2766)
at…