Versioning Objects ------------------ JMSSerializerBundle comes by default with a very neat feature which allows you to add versioning support to your objects, e.g. if you want to expose them via an API that is consumed by a third-party: .. code-block :: php setVersion('1.0'); $serializer->serialize(new VersionObject(), 'json');