JMSSerializerBundle
JMSSerializerBundle copied to clipboard
Easily serialize, and deserialize data of any complexity (supports XML, JSON, YAML)
If you put PostSerialize and PostDeserialize annotations in the same docblock, the first annotation is used, the second is ignored. It looks like a bug! You may check other combinations...
Hi, I'm trying to deserialize a json file, using the following basic method : ``` PHP $avail = file_get_contents(__DIR__.'/../Resources/public/js/data/flux/availabilities.json'); $serializer = $this->container->get('jms_serializer'); $data = $serializer->deserialize($avail, 'AppBundle\Entity\Leg', 'json'); //json_decode version $avail...
Hello, How do you deserialize that in an API ? ``` json [ {"op":"data","value":"Test of Thursday","property":"name"} ] ``` I need to put as _inline:true_ for that, but the inline is...
Hi, I have a complex XSD that I reversed engineered into PHP classes and JMS YAML using this project. For simplicity, I am only focusing on the PHP class `EmployerId`...
I am trying to override User model from FosUserBundle. And I followed the document to add a yaml file for user model. But It doesn't work. Here is my code:...