Use serializer for api json output