How to generate GSONFormat for a property that can either be an object or string?
<p>I'm using GSON for parsing response from a Volley request and got stuck in creating a GSON format when the response has a property that can either be a string or an object or an array perhaps... e.g <strong><code>content</code></strong></p>

<pre><code>{
      "data": {
        "date_updated": "2016-12-21T03:55:29.955Z",
        "date_created": "2016-12-21T03:55:29.955Z",
        "content": "String here",
        "content": {
            "longitude": "",
            "latitude": ""
        },
        "status": "PROC",
        "_id": "5859fd31a93c7235575d62db"
      }
}
</code></pre>

<p>My current process in creating a GSON model is:</p>

<ol>
<li>Create a java class</li>
<li>Right click and select Generate > GSONFormat</li>
<li>Paste the object I'm trying to convert then use it in Volley. 
I tried the above object but it doesn't proceed. I think it's because of same property name.</li>
</ol>

<p>Thanks for your advice.</p>