 
            
            
            
            
                17 Sep
                
                    2020
                
            
            
                17 Sep
                
                '20
                
            
            
            
        
    
                2:21 a.m.
            
        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).