title: retrofit error JSONSyntaxException
body: <p>I recently decided to use Retrofit Library for android for doing network calls and also GSON for handling JSON. But I keep getting the following Exception and my app crashes. </p>
  
  <pre><code>Caused by: retrofit.RetrofitError: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 2 column 1 path $
  at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:383)
  at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
  at $Proxy0.getSMS(Native Method)
  at package$AsyncTask.doInBackground()
  Caused by: retrofit.converter.ConversionException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 2 column 1 path $
  at retrofit.converter.GsonConverter.fromBody(GsonConverter.java:67)
  at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:367)
  ... 10 more
  Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 2 column 1 path $
  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:200)
  at com.google.gson.Gson.fromJson(Gson.java:810)
  at com.google.gson.Gson.fromJson(Gson.java:775)
  at retrofit.converter.GsonConverter.fromBody(GsonConverter.java:63)
  ... 11 more
  Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 2 column 1 path $
  at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:387)
  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:189)
  ... 14 more
  </code></pre>
  
  <p>I used postman to check JSON Response which is </p>
  
  <pre><code>{"success":"true",
  "message":"We are going to rock you"}
  </code></pre>
  
  <p>My Interface is as follows:</p>
  
  <pre><code>public interface CreateHTTPRequest {
  public static final String END_POINT1 = "http://baseurl.com";
  
  @POST("/user/usermob")
  public NewRes getSMS(@Query(value = "mobile") String mobile);
  
  // This is used as Model for return type
  public static class NewRes {
      String success;
      String message;
  }
  </code></pre>
  
  <p>I am making Network Request in AsyncTask as follows:</p>
  
  <pre><code>        RestAdapter restAdapter = new RestAdapter.Builder()
          .setEndpoint(CreateHTTPRequest.END_POINT1 /*"https://api.github.com"*/)
          .build();
  
          CreateHTTPRequest request = restAdapter.create(CreateHTTPRequest.class);
          NewRes response = request.getSMS("123456789");
  </code></pre>
  
  <p>I dont understand what could be wrong. I am new to using Retrofit and GSON, so am not able to figure out eveything. </p>