-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Structured keys (Array, Object) not supported #280
Comments
@axelczk Please include some kind of reproduction, and perhaps stack trace / exception message. Is the issue with values or key type? And why are you using |
Here is a payload that fails:
The problem is: the library doesn't accept array as a fieldName. The exception is thrown in: _decodeNonStringName(int) :
|
Correct: this is not supported and I am not quite sure how it could be -- it would require transformation of some kind from whatever array type is being used into Java |
I would say you should deserialize it in the same way as when a value is an array but it's easier said than done. Thanks you for your answer. It's very appreciated ! |
The problem is not deserialization as these values can be decoded as values. The problem is that of exposing it via token stream; Object keys are exposed as So it is all possible, just quite a bit of work and needing to fit with the API approach. |
I was doing some test on my projet using your library, and an exception was thrown for a major type 4 not supported on this payload:
Diagnostic payload: {[3,0,0]:"test"}
But the major type 4 is working with this one: [{0: "0"}, {0: "1"}]
I'm using the default CBORMapper, with the method: readValues(buffer, Object.class) for this test.
Is this a problem on the library ? Or it's not supported ? In the second case, do you plan to support it in the future ?
The text was updated successfully, but these errors were encountered: