Allow custom serializer adapter