Skip to content
Advertisement

Tag: uint8array

Sending Uint8Array (BSON) in a JSON object

I’m using the ‘bson’ npm package in the browser for converting / serializing a JSON object to BSON. The documentation says that it returns a Node.js buffer. The documentation of Node.js says that a buffer is of type ‘Uint8Array’. Now I want to send this Uint8Array in another JSON object (infoJSON) but JSON does not support Uint8Array. I tried to

Advertisement