title: How do I encode a UUID to make it JSON serializable
body: <p>I am using UUID instead of the default Django incremental IDs. However, now I get the following error:</p>
  
  <pre><code>file "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py",
  line 184, in default
      raise TypeError(repr(o) + " is not JSON serializable") TypeError: UUID('4fd5a26b452b4f62991d76488c71a554') is not JSON serializable
  </code></pre>
  
  <p>Here is my serializer file:</p>
  
  <pre><code>class ApplicationSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = Application
          fields = ("id", "created_at", "merchant_uri", "api_key",
                    "status", 'owner_email', 'business_type', 'full_name',
                    'owner_phone_number', 'marketplace_name', 'domain_url',
                    'support_email', 'support_phone_number', 'postal_code',
                    'street_address', 'current_processor',
                    'current_monthly_volume')
  </code></pre>