JMSSerializerBundle
JMSSerializerBundle copied to clipboard
Easily serialize, and deserialize data of any complexity (supports XML, JSON, YAML)
Currently you can use XmlList only for properties and methods, therefore if you want to list all posts of a blog you can't have ``` xml ``` but you get...
This was a requested feature on Symfony Live, using the Metadata from JMS it is possible to create an XSD Schema. Also It would be great to provide a way...
I'm trying to serialize an array of entities using groups but the filtering is not working, I get the whole list of properties set. [...] $users = $statement->fetchAll(); $context =...
I get an : > "json_encode(): recursion detected in JsonSerializationVisitor.php line 29" with php 5.4, or an : > UnexpectedValueException "The Response content must be a string or object implementing...
Is there a way to expose the field name when using a discriminator map? ``` yml Acme\UserBundle\Entity\User: exclusion_policy: ALL discriminator: field_name: type map: userType1: Acme\UserBundle\Entity\userType1 userType2: Acme\UserBundle\Entity\userType2 ``` I tried:...
Hello I can see this method: ```php private function parseDateTime($data, array $type) { $timezone = isset($type['params'][1]) ? new \DateTimeZone($type['params'][1]) : $this->defaultTimezone; $format = $this->getFormat($type); $datetime = \DateTime::createFromFormat($format, (string) $data, $timezone);...
Hi, I'm working with inheritance, and I cannot succeed in serializing an ArrayCollection property of an abstract type, using YAML configuration. For instance: ``` // This is the main class...
Sometimes, the serialization process is [throwing an exception](https://github.com/schmittjoh/serializer/blob/master/src/JMS/Serializer/Metadata/ClassMetadata.php#L163-170) This is due to the fact, that sometimes a [doctrine proxy class](https://github.com/schmittjoh/metadata/blob/master/src/Metadata/ClassMetadata.php#L42) of an entity is injected instead of the actual entity...
Hi, I understand how I can deserialize flat json objects to PHP objects. But the API I uses, gives objects back in a hierarchy. ``` { "Webmessage": { "Content": {...