AWS SQS JSON format when receiving message from SNS with Ruby SDK
问题 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): jsonMessage = { "announcement" => { "first_name" => results['first_name'][:s], "last_name" => results['last_name'][:s], "loc_code" => results['location'][:s], "note" => params['note_content'] } } msgid = @announcments_topic.publish(jsonMessage.to_json, {subject: "Note Created", message_structure: 'json' }) When my queue listener picks up this