You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking for way how to modify already serialized data.
I've registered PostSerialize event listener. Unfortunately I have no access from inside of the listener to "data" and modify it (unset variables, wrap data, etc...). I guess it would be greate to have getData() and setData() methods in JMS\Serializer\JsonSerializationVisitor.
What I was trying to archieve is to wrap serialized data like:
[
'test' => [
'foo' => 'bar'
]
]
into 'parent' to get:
[
'parent' => [
'test' => [
'foo' => 'bar'
]
]
]
If you get any bether idea plese let me know.
The text was updated successfully, but these errors were encountered:
I was looking for way how to modify already serialized data.
I've registered PostSerialize event listener. Unfortunately I have no access from inside of the listener to "data" and modify it (unset variables, wrap data, etc...). I guess it would be greate to have getData() and setData() methods in JMS\Serializer\JsonSerializationVisitor.
What I was trying to archieve is to wrap serialized data like:
into 'parent' to get:
If you get any bether idea plese let me know.
The text was updated successfully, but these errors were encountered: