title: How to read body of the sqs message on AWS
body: <p>I am writing a script in python to receive Amazon SQS messages.</p>
  <p>In the Amazon SQS Queue I have such message as</p>
  <pre><code>'{&quot;Test&quot;:&quot;Machine-name&quot;, &quot;State&quot;:&quot;Request&quot;, &quot;Description&quot;:&quot;&quot;}'
  </code></pre>
  <p>In the python script I can receive this message; however, it complains as following:</p>
  <pre><code>msg = json.loads(message)
    File &quot;/usr/lib/python3.8/json/__init__.py&quot;, line 341, in loads
      raise TypeError(f'the JSON object must be str, bytes or bytearray, '
  TypeError: the JSON object must be str, bytes or bytearray, not sqs.Message
  </code></pre>
  <p>I believe the message I am inserting to the queue is in json format, but why does it recognize as sqs.Message ?</p>
  <p>How do I convert to json format ?</p>
  <p>Thanks,</p>