Gson - parsing json with field that is array or string
<p>I'm trying to parse some json with Gson and I have following problem:</p>

<p>This is my json:</p>

<pre><code>[{
  "label": "Check Digit",
  "value": "W"
},
{
  "label": "Equipment",
  "value": [
    "With Standard Liftgate",
    "(-) Version Packages"
  ]
}]
</code></pre>

<p>This is my java class:</p>

<pre><code>public class Decode {

    private String label;
    private List&lt;String&gt; value = new ArrayList&lt;&gt;();

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List&lt;String&gt; getValue() {
        return value;
    }

    public void setValue(List&lt;String&gt; value) {
        this.value = value;
    }

}
</code></pre>

<p>How to make Gson to parse it and use <code>value</code> as Array of String always?</p>