All Questions
8 questions
0
votes
0
answers
19
views
Custom serializer for Jackson with togglebale options
I have a rather complicated Class structure that is needed to be serialized into CBOR. Now issue is that sometimes i need CBOR with tags while other times i need without tags.
Id like to be able to ...
0
votes
0
answers
62
views
How to use lenient mode with FasterXML CBOR?
I want to use the CBORGenerator.Feature.LENIENT_UTF_ENCODING enum that was introduced in version 2.12 of the jackson-dataformats-binary library. I am using version 2.16.0 of the library.
I thought I ...
0
votes
0
answers
150
views
How can I decode CBOR-encoded data that uses CBOR byte strings in Java?
I am sending CBOR-encoded data from one application to another. The application receiving the CBOR-encoded data is a Java application. The CBOR-encoded data was encoded with strings as byte strings, i....
1
vote
1
answer
884
views
Retrieving data from CBOR ByteArray
I am trying to serialize a map into CBOR in Kotlin with the Jackson CBOR Dataformats Library, this works fine if the key is a String , I can retrieve the value of that key easily but when the key in ...
3
votes
0
answers
896
views
Integer keys when serializing a POJO to CBOR with Jackson
I'm writing a Kotlin program (though there's nothing Kotlin-specific here, so Java-based answers are also welcome) that needs to communicate using a CBOR-based protocol. That protocol uses integers as ...
4
votes
1
answer
1k
views
Can not write a field name, expecting a value
When we switched from Jackson version 2.8.9 to 2.9.8 we ran into some trouble with serializing data in CBOR format. As it turns out the custom Jackson module we've been using is causing trouble in ...
1
vote
0
answers
480
views
Decoding VALUE_EMBEDDED_OBJECT token type in CBOR format
I'm new to CBOR encoding format, doing POC to understand this format. I'm using Faster XML library. Facing issue with one of the token type VALUE_EMBEDDED_OBJECT. I do not know how to parse this type ...
5
votes
2
answers
2k
views
Serialize fixed size Map to CBOR
I have the following JSON:
[
{
2: {
"c": true
}
},
{
3: {
"p": 10
}
}
]
That I would like to convert to CBOR format.
Accordingly to cbor.me I have the following ...