corrected the content type of the response from servlet - from text/json
to application/json