Add bytes-as-string encoding
The bytes_str
encoding is like the bytes
encoding but returns an OCaml string
rather than bytes
.
The goal is to be able to move more bytes
to string
without breaking existing encodings.
In binary, bytes
and string
are exactly the same and so is bytes_str
, the difference is only visible in JSON.