Skip to content
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

Ability to have alternatives to toString() #162

Open
sduskis opened this issue Jul 4, 2012 · 1 comment
Open

Ability to have alternatives to toString() #162

sduskis opened this issue Jul 4, 2012 · 1 comment

Comments

@sduskis
Copy link
Member

sduskis commented Jul 4, 2012

objects, such as Dates, often have requirements to be rendered differently than toString(). We should have some way to give a developer alternative rendering methods.

@jkovacs
Copy link
Contributor

jkovacs commented Nov 15, 2013

Have you considered adding java.util.Date to the list of primitives in ObjectUtil#isPrimitive? Both Jackson and JAXB have native support for handling Date instances and there is currently no other way to serialize date values that I'm aware of (by default dates result in the empty json object {} representation at the moment.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants