public class CborSerializer
extends Serializer
CBOR Serializer
CBOR is based on the wildly successful JSON data model: numbers, strings,
arrays, maps (called objects in JSON), and a few values such as false, true,
and null. One of the major practical wins of JSON is that successful data
interchange is possible without casting a schema in concrete. This works much
better in a world where both ends of a communication relationship may be
evolving at high speed.
This serializer is NOT compatible with the JavaScript/Node version of
Moleculer.
Required dependency:
https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/
jackson-dataformat-cbor
compile group: 'com.fasterxml.jackson.dataformat', name:
'jackson-dataformat-cbor', version: '2.10.0'
- See Also:
JsonSerializer,
MsgPackSerializer