-
-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serialize_null configuration #77
Comments
This is part of the context: https://github.com/schmittjoh/serializer/blob/master/src/JMS/Serializer/Context.php#L176 |
Please ask question on the mailing list, or Stack Overflow. Thanks! |
Is there a question for it already on stack overflow or mailing list? any link? I'm facing a similar issue? |
I can't find a solution for this anywhere. |
Here is an example use JMS\Serializer\SerializationContext;
$serializationContext = SerializationContext::create()->setSerializeNull(true);
$serializer->serialize($object, $format, $serializationContext); |
To be able to work with Knockout.js I require the keys of empty values to be preserved.
I thought this was added to a previous version of JMSSerializerBundle / Serializer but in the current version I can't find anything to make sure it also serializes null values.
Any suggestions?
(note: not sure if this should be posted in JMSSerializeBundle or here)
The text was updated successfully, but these errors were encountered: