docs: def read_json(fh, byteorder, dtype, count, offsetsize):
      """Read JSON tag data from file and return as object."""
      data = fh.read(count)
      try:
          return json.loads(unicode(stripnull(data), 'utf-8'))
      except ValueError:
          log.warning('read_json: invalid JSON')