title: Gson, how to deserialize array or empty string
body: <p>I trying to deserialize this json to array of objects:</p>
  
  <pre><code>[{
      "name": "item 1",
      "tags": ["tag1"]
  },
  {
      "name": "item 2",
      "tags": ["tag1","tag2"]
  },
  {
      "name": "item 3",
      "tags": []
  },
  {
      "name": "item 4",
      "tags": ""
  }]
  </code></pre>
  
  <p>My java class looks like this:</p>
  
  <pre><code>public class MyObject
  {
      @Expose
      private String name;
  
      @Expose
      private List&lt;String&gt; tags = new ArrayList&lt;String&gt;();
  }
  </code></pre>
  
  <p>The problem is json's tags property which can be just empty string or array. Right now gson gives me error: <code>com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING</code></p>
  
  <p>How should I deserialize this json?</p>
  
  <p>I do not have any control to this json, it comes from 3rd pary api.</p>