Handle ArrayBuffer encoding
apowers313 opened this issue · comments
Adam Powers commented
Currently if an attribute in a JSON object being encoded is of type ArrayBuffer
, it is silently ignored. It would be nice if somewhere around line 158, encode
detected that the type was ArrayBuffer
and promoted it to a Uint8Array
to be encoded properly.
The same request may apply for handling other TypedArrays
and DataViews
.