JSON Response is not getting in Android from google app engine servlet
===

I am trying to implement http request response from android to GAE servlet. The request from from android is normal http post request. It working fine. The problem is i sending back to the android is json response. I created json objest using GSON (gson v2.2.2). When i tested in browser, it shows the gson format correctly.

The json fromat is,

    {"data1":100,"data2":"hello","list":["String 1","String 2","String 3"]}

I tried to send this json by 

    /*json is my json format*/

    response.getWritet().println(json);

and

    system.out.println(json);

When i tried to read the json object in android, i am getting the exception,

    Value <html><head> of type java.lang.String cannot be converted to JSONArray

Please suggest some other ways or help me to solve this, Thanks.