-
-
Notifications
You must be signed in to change notification settings - Fork 456
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
add filter/replacer fn option to stringify #203
Comments
Can you present some actual use-cases? It's hard to see the value of this with the above example as it doesn't really make sense. |
One use case I came across, trying to pass a date as a parameter in the query string, and the web server is expecting an ISO date string (for example ASP.NET Core).
Our work-around was to just wrap the usage of the serialize to handle this case:
|
I found this while looking for a way to specify how dates are serialized. |
I also faced with the same issue: date is being serialized incorrectly. It would be nice to add a special parameter of how to serialize dates. Or better add an optional |
It would be nice to enable a generic fn that can be used to hack add customize use cases
The text was updated successfully, but these errors were encountered: