I want to deserialize something like this:
[
{ "id": 42 },
{ "id": 43 }
]
Any idea how to do this?
It would be
$serializer->deserialize($json, 'array<T>', 'json')
where T
is the name of the class with the id
property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With