J2J 2V2
8002
35510
D-28359
CBOR Content | CBOR Type | Diagnostic Notation | Example | CBOR Encoding |
---|---|---|---|---|
Unsigned integer | 0 | Decimal digits | 123 | 18 7B |
Negative integer | 1 | Decimal digits prefixed by a minus sign | -123 | 38 7A |
Byte string | 2 | Hexadecimal value enclosed between single quotes and prefixed by an 'h' | h'F15C' | 42 F15C |
Text string | 3 | String of Unicode characters enclosed between double quotes | "txt" | 63 747874 |
Array | 4 | Comma-separated list of values within square brackets | [ 1, 2 ] | 82 01 02 |
Map | 5 | Comma-separated list of key : value pairs within curly braces | { 1: 123, 2: 456 } | A2 01187B 021901C8 |
Boolean | 7/20 | false | false | F4 |
7/21 | true | true | F5 | |
Null | 7/22 | null | null | F6 |
Not assigned | 7/23 | undefined | undefined | F7 |
Name | Template | Reference |
---|---|---|
yang-data+cbor | application/yang-data+cbor | RFC 9254 |
Media Type | Encoding | ID | Reference |
---|---|---|---|
application/yang-data+cbor | - | 340 | RFC 9254 |
application/yang-data+cbor; id=name | - | 341 | RFC 9254 |
application/yang-data+cbor; id=sid | - | 140 | RFC 9254 |
Tag | Data Item | Semantics | Reference |
---|---|---|---|
43 | text string | YANG bits datatype; see |
RFC 9254 |
44 | text string | YANG enumeration datatype; see |
RFC 9254 |
45 | unsigned integer or text string | YANG identityref datatype; see |
RFC 9254 |
46 | unsigned integer or text string or array | YANG instance-identifier datatype; see |
RFC 9254 |
47 | unsigned integer | YANG Schema Item iDentifier (SID); see |
RFC 9254 |
J2J 2V2
8002
35510
D-28359