title: Python: Convert a json string that encodes an hexadecimal in an array of bytes
body: <p>I have a json with data="90ab"</p>
  
  <pre><code>unpack = json.loads(content)
  data = unpack['data']
  data_byte=bytearray.fromhex(data)
  </code></pre>
  
  <p>I want data_byte to be an array of bytes [byte1 byte2], with byte1=0x90, and byte2=0xab
  I need help, because what I tried doesn't seem to work
  Thanks</p>