title: Gson error: Expected a string but was BEGIN_ARRAY
body: <p>My json:</p>
  
  <pre><code>{"code":200,"data":[{"xxx":"xxx","yyy":1234,"zzz":"56789"},{...}]}
  </code></pre>
  
  <p>I need Gson to take the <strong>data</strong> part in the shape of [{...}] and put it to simple <code>String</code>. But Gson keeps trying to parse it as an array and throws this <code>JsonSyntaxException</code>. Is it possible to get the result as I want it?</p>
  
  <p>Gson fromJson call:</p>
  
  <pre><code>ParsedResponse parsedResponse = gson.fromJson(jsonString, ParsedResponse.class);
  </code></pre>
  
  <p>ParsedResponse class:</p>
  
  <pre><code>public class ParsedResponse {
  
      @SerializedName("code")
      private int code;
  
      @SerializedName("data")
      private String data;
  
      private int statusCode;
  
      // getters, setters
  }
  </code></pre>
  
  <p><strong>EDIT</strong>:
  The system works when I have {...} in data, so why couldn't it work with [{...}]? I just need Gson to take the string [{...}] and put it to String variable.</p>