title: Django Rest Framework and JSONField
body: <p>Given a Django model with a <a href="https://github.com/bradjasper/django-jsonfield">JSONField</a>, what is the correct way of serializing and deserializing it using <a href="http://www.django-rest-framework.org/">Django Rest Framework</a>?</p>
  
  <p>I've already tried crating a custom <code>serializers.WritableField</code> and overriding <code>to_native</code> and <code>from_native</code>:</p>
  
  <pre><code>from json_field.fields import JSONEncoder, JSONDecoder
  from rest_framework import serializers
  
  class JSONFieldSerializer(serializers.WritableField):
      def to_native(self, obj):
      return json.dumps(obj, cls = JSONEncoder)
  
      def from_native(self, data):
          return json.loads(data, cls = JSONDecoder)
  </code></pre>
  
  <p>But when I try to updating the model using <code>partial=True</code>, all the floats in the JSONField objects become strings.</p>