Live data from Hacker News

From XML to JSON to CBOR

cborbook.com

1–10 of 106 posts

Re: From XML to JSON to CBOR

#3
Odd that the XML and JSON sections show examples of the format, but CBOR doesn’t. I’m left with no idea what it looks like, other than “building on JSON’s key/value format”.

Re: From XML to JSON to CBOR

#4
post #3

Odd that the XML and JSON sections show examples of the format, but CBOR doesn’t. I’m left with no idea what it looks like, other than “building on JSON’s key/value format”.

I'm assuming, since it's a binary encoded, the textual output would not be something you'd like to look at.

Re: From XML to JSON to CBOR

#5
How different is CBOR compared to BSON? Both seem to be binary json-like representations.

Edit: BSON seems to contain more data types than JSON, and as such it is more complex, whereas CBOR doesn't add to JSON's existing structure.

Re: From XML to JSON to CBOR

#6
post #3

Odd that the XML and JSON sections show examples of the format, but CBOR doesn’t. I’m left with no idea what it looks like, other than “building on JSON’s key/value format”.

I'm assuming, since it's a binary encoded, the textual output would not be something you'd like to look at.

People look at TCP packets all the time.

Re: From XML to JSON to CBOR

#7

Earlier quoted context omitted.

I'm assuming, since it's a binary encoded, the textual output would not be something you'd like to look at.

People look at TCP packets all the time.

In which format? As a list of 1s and 0s; in hex? TCP or IP if I just pasted the textual version of any binary data id captured without some form of conversion it's not good to look at. Especially if it's not accompanied by the encoding schema so you can actually make sense of it.

Re: From XML to JSON to CBOR

#9
post #3

Odd that the XML and JSON sections show examples of the format, but CBOR doesn’t. I’m left with no idea what it looks like, other than “building on JSON’s key/value format”.

I'm assuming, since it's a binary encoded, the textual output would not be something you'd like to look at.

Why? I’m comfortable reading 0x48 0x65 0x78 0x61 0x64 0x65 0x63 0x69 0x6D 0x61 0x6C

Re: From XML to JSON to CBOR

#10

Earlier quoted context omitted.

People look at TCP packets all the time.

In which format? As a list of 1s and 0s; in hex? TCP or IP if I just pasted the textual version of any binary data id captured without some form of conversion it's not good to look at. Especially if it's not accompanied by the encoding schema so you can actually make sense of it.

The encoding schema are also present for XML and JSON, but not CBOR, so yes, that’s another gap if the book is intended for a technical audience.
Post reply on HN