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

Make StdKeySerializers use new JsonGenerator.writeFieldId() for int/long keys #1284

Closed
cowtowncoder opened this issue Jun 29, 2016 · 1 comment
Milestone

Comments

@cowtowncoder
Copy link
Member

With addition of JsonGenerator.writeFieldId() in JsonGenerator in 2.8, it will be possibly to support int/long valued keys for data formats like CBOR. But due to timing of addition changes for databind won't make it in 2.8, so let's target this for 2.9.

@cowtowncoder cowtowncoder changed the title (2.9) Make StdKeySerializers use new JsonGenerator.writeFieldId() for int/long keys Make StdKeySerializers use new JsonGenerator.writeFieldId() for int/long keys Oct 5, 2016
@cowtowncoder
Copy link
Member Author

I think this will require addition of separate Integer/Long key serializers as the first step (otherwise will call value.toString() to lose value). Since fieldId is of type long, probably should just use one that accepts Number, to call longValue() on.

@cowtowncoder cowtowncoder added this to the 2.9.0 milestone Nov 19, 2016
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

1 participant