JSON methods for bytes.