def to_internal_value(self, data):
        try:
            val = json.loads(data)
        except TypeError:
            val = data
        return val
Deserialize the field's JSON data, for write operations.
dataset/ETHPy150Open deis/deis/controller/api/serializers.py/JSONFieldSerializer.to_internal_value