I have this particular json to decode with jms/serializer:
{
"id": 42,
"attributes": {
"name": "toto",
"alternativeText": null
}
}
into:
class Image {
public string $name;
}
With symfony/serializer a can use the attribute SerializedPath
#[SerializedPath('[attributes][name]')]
public string $name;
Did an equivalence exist for jms/serializer ?