JMS\Serializer OBJECT_TO_POPULATE

352 Views Asked by At

Is it possible deserialize to an object with JMS\Serializer?

I don't see n option like the one Symfony Serializer has:

https://symfony.com/doc/current/components/serializer.html#deserializing-in-an-existing-object

$serializer->deserialize($data, Person::class, 'xml', [AbstractNormalizer::OBJECT_TO_POPULATE => $person]);

in JMS\Serializer

public function deserialize(string $data, string $type, string $format, ?DeserializationContext $context = null)
0

There are 0 best solutions below