title: remove {} from OrderedDict
body: <p>My method to create data using taskIdSerializer given in below:</p>
  <pre><code>def to_representation(self, instance):
          result = super(taskIdSerializer, self).to_representation(instance)
          result = OrderedDict([(key, result[key]) for key in result if result['date']])
          return result
  </code></pre>
  <p>This result return in my function given in below:</p>
  <pre><code>[
      {
          &quot;description&quot;: &quot;asdsa&quot;,
          &quot;priority_id&quot;: 3,
          &quot;name&quot;: &quot;tetst&quot;,
          &quot;date&quot;: [
              {
                  &quot;dates&quot;: &quot;20/09/2021 15:14:00&quot;,
                  &quot;id&quot;: 146
              },
              {
                  &quot;dates&quot;: &quot;20/09/2021 15:14:00&quot;,
                  &quot;id&quot;: 145
              }
          ]
      },
      {}, // this is value add dict when date = []
      {}  // this is value add dict when date = []
  ]
  </code></pre>
  <p>I want remove {} object and ı want to get return data like this:</p>
  <pre><code>[
          {
              &quot;description&quot;: &quot;asdsa&quot;,
              &quot;priority_id&quot;: 3,
              &quot;name&quot;: &quot;tetst&quot;,
              &quot;date&quot;: [
                  {
                      &quot;dates&quot;: &quot;20/09/2021 15:14:00&quot;,
                      &quot;id&quot;: 146
                  },
                  {
                      &quot;dates&quot;: &quot;20/09/2021 15:14:00&quot;,
                      &quot;id&quot;: 145
                  }
              ]
          }
      ]
  </code></pre>