-
Notifications
You must be signed in to change notification settings - Fork 0
Serialize null #13
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 #13
Conversation
razor-x
commented
Feb 28, 2025
- feat: Serialize null
- feat: Do not serialize the empty string
|
@phpnode How does this look? Based on your suggestion on serializing null. |
|
Thanks @phpnode! Because this is a breaking change, I'm going to hold off merging it until work on the parser is further along. Just in case we discover something we didn't think of while trying to implement the parser that would need to be included in v2. There is no real rush on this at the moment since without the parser we can't really use this effectively yet. |
BREAKING CHANGE: The primitive value null will now be serialized instead
of removed, e.g., { foo: null } will now be serialized to 'foo='.
BREAKING CHANGE: Any attempts to serialize the empty string will now throw an UnserializableParamError.
BREAKING CHANGE: Any attempt to serialize an object with a dot in the key will now throw an UnserializableParamError.