Boost logo

Boost :

From: Gavin Lambert (boost_at_[hidden])
Date: 2020-09-17 00:21:11

On 17/09/2020 02:26, Peter Dimov wrote:
> "Binary string" is basically JSON string with UTF-8 validation turned
> off; it's a common thing to want to send/receive and the binary formats
> are arguably correct in offering it as a specific type. Of course this
> doesn't change the fact that it's not representable in standard JSON.

The standard JSON representation would be a base64 string. Though of
course both sides have to agree to that.

And you probably wouldn't want a library to non-semantically auto-decode
anything that looks vaguely like a base64 string to bytes (but you'd
need something like that if you wanted to round-trip CBOR to JSON to CBOR).

Boost list run by bdawes at, gregod at, cpdaniel at, john at