-
-
Notifications
You must be signed in to change notification settings - Fork 143
Allow exposing CBOR Simple values as JsonToken.VALUE_EMBEDDED_OBJECT
with a feature flag
#587
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
Comments
Hey @cowtowncoder, not sure if you would like different behavior on how should we move with handling these values, i'm creating this initial issue to track it and to be able to create a PR against it |
Ok so at high level that sounds good, wrt change to One immediate idea is that although there is I don't have strong opinion on naming but looks like term "tag" is used, so maybe EDIT: realized these are NOT Tags but specifically "Simple values". So something reflecting that, like |
That's a good question, actually, I overlooked what value would need to be used. Initially, I thought your idea would mean extending JsonToken enum, but now, after checking the code, I understand that it would be a matter of using it as a tokenType and introducing EDIT: The wrapper seems to be already implemented Line 26 in 63fdc54
|
Whoa! Younger me was pro-active, but seems to have forgotten to close the loop here... :) So yeah, that's exactly what I had in mind now and -- apperently! -- in November 2020 too! :-D And on "extending |
VALUE_EMBEDDED_OBJECT
with a feature flag
VALUE_EMBEDDED_OBJECT
with a feature flagJsonToken.VALUE_EMBEDDED_OBJECT
with a feature flag
Hello, currently, we're decoding Simple values from Major type (7) as
VALUE_NUMBER_INT
Token, where it's better to be decoded using a special type (I agree and assume VALUE_EMBEDDED_OBJECT would work and no need for additional type as commented)jackson-dataformats-binary/cbor/src/main/java/com/fasterxml/jackson/dataformat/cbor/CBORParser.java
Lines 3679 to 3705 in 63fdc54
I'm writing this issue so we track it, where we can introduce that change with a feature flag default to false for earlier versions, and true for 3.0 onward.
The text was updated successfully, but these errors were encountered: