Converts an input argument to a Uint8Array, handling cases for both JSON and Uint8Array.
The input argument, either JSON object or Uint8Array.
A Uint8Array representation of the input argument.
Converts an input argument to a Uint8Array, handling cases for both JSON and Uint8Array.