title: Implementing a custom GsonCoverterFactory/Deserializer for dynamic types
body: <p>How do I implement a custom GsonConverterFactor or a JsonDeserializer for types that have dynamic values?</p>
  
  <p>For example:</p>
  
  <p>If Tags object has content, it looks like this:</p>
  
  <pre><code>"tags": [
                  {
                      "content_id": "13",
                      "tag_id": "3",
                      "created": "2018-03-26 11:09:08",
                      "tag_name": "FICTION"
                  },
                  {
                      "content_id": "13",
                      "tag_id": "7",
                      "created": "2018-03-26 11:09:08",
                      "tag_name": "JUVENILE FICTION"
                  }
              ]
  </code></pre>
  
  <p>However, if it is empty it will return this:</p>
  
  <pre><code>            "tags": false
  </code></pre>
  
  <p>Basically, I want to make the List of Tags <code>null</code> if the deserializer reads its value as <code>false</code>.</p>
  
  <p>EDIT: I am using Retrofit and GSON.</p>