title: json syntax error when creating an AWS role
body: <p>I’m simply copy pasting vendor documentation on creating an AWS role using JSON but getting a syntax error.</p>
  
  <p>JSON:</p>
  
  <p>{</p>
  
  <p>"Version":"2012-10-17",</p>
  
  <p>"Statement":[</p>
  
  <pre><code>  {
  
       "Effect":"Allow",
  
       "Action":[
  
          "s3:ListBucket",
  
          "s3:GetBucketLocation"
  
       ],
  
       "Resource":[
  
          "arn:aws:s3:::&lt;bucket-name&gt;"
  </code></pre>
  
  <p>] 
  },</p>
  
  <pre><code>  {
  
       "Effect":"Allow",
  
       "Action":[
  
          "s3:GetObject"
  
       ],
  
       "Resource":[
  
          "arn:aws:s3:::&lt;bucket-name&gt;/*"
  </code></pre>
  
  <p>] 
  }</p>
  
  <p>Error received:  “An error occurred (MalformedPolicyDocument) when calling the PutRolePolicy operation: Syntax errors in policy.”</p>