title: How to serialize an 'object list' in Django REST Framework
body: <p>I need a serializer for something like this:</p>
  
  <pre><code>{
      "items": {
          12: {
              "name": "item 1"
          },
          66: {
              "name": "item 2"
          }
      }
  }
  </code></pre>
  
  <p>How should I declare my serializers to get something like this? Is that even a valid JSON or should it look like this:</p>
  
  <pre><code>{
      "items": [
          {
              "name": "item 1",
              "id": 12
          }, {
              "name": "item 2"
              "id": 66
          }
      ]
  }
  </code></pre>
  
  <p>? (12, 66 are primary keys of those 'items')
  Using Django REST Framework 3.</p>