'HTML inputs should be treated as a serialized JSON string.'

def test_html_input_as_json_string(self):

    class TestSerializer(serializers.Serializer, ):
        config = serializers.JSONField()
    data = QueryDict(mutable=True)
    data.update({'config': '{"a":1}'})
    serializer = TestSerializer(data=data)
    assert serializer.is_valid()
    assert (serializer.validated_data == {'config': {'a': 1}})
