I am getting this response from the server {\"status\":\"true\",\"msg\":\"success\"}
I am trying to parse this json string using Jackson parser library
In my case the problem was caused by my passing a null InputStream to the ObjectMapper.readValue call:
ObjectMapper objectMapper = ...
InputStream is = null; // The code here was returning null.
Foo foo = objectMapper.readValue(is, Foo.class)
I am guessing that this is the most common reason for this exception.