title: AWS SQS JSON format when receiving message from SNS with Ruby SDK
body: <p>I have an SQS queue which is subscribed to a SNS topic.  When I publish a new notification to the topic, I use the following code (within a Sinatra app):</p>
  
  <pre><code>jsonMessage =  {
      "announcement" =&gt; {     
          "first_name" =&gt; results['first_name'][:s],  
                          "last_name" =&gt; results['last_name'][:s],
                          "loc_code" =&gt; results['location'][:s], 
                          "note" =&gt; params['note_content']
      }
  }
  
  msgid = @announcments_topic.publish(jsonMessage.to_json, 
                                      {subject: "Note Created",
                                       message_structure: 'json' })
  </code></pre>
  
  <p>When my queue listener picks up this notification, the message section of the corresponding hash looks like this: </p>
  
  <pre><code>"Message"=&gt;"{\"announcement\":{\"first_name\":\"Eve\",\"last_name\":\"Salt\",\"loc_code\":\"Location\",\"note\":\"test\"}}"
  </code></pre>
  
  <p>In my queue listener, I want to use this hash, but when I try to use </p>
  
  <pre><code>JSON.parse(result['Message'])
  </code></pre>
  
  <p>I get an unexpected token error because of the escaped double quotes.  Any suggestions on how I can fix this? Am I not sending my notification as JSON properly?  How can I get sns/sqs to not escape the double quotes?</p>