title: DynamoDB putting item using AWS CLI
body: <p>I am trying the AWS CLI with local DynamoDB.</p>
  
  <p>While I was working, I found some issues.</p>
  
  <p><a href="https://www.dynamodbguide.com/inserting-retrieving-items" rel="noreferrer">Inserting &amp; Retrieving Items | DynamoDB, explained.</a> shows how to create a table using JSON format. But it didn't work for me. So I had to  use <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html" rel="noreferrer">Basic Operations for Tables - Amazon DynamoDB</a>. Anyways, it worked.</p>
  
  <p>But what was the trouble was when putting an item.</p>
  
  <p>I tried to add item to the local db like this:</p>
  
  <pre><code>aws dynamodb put-item \
      --table-name UsersTable \
      --item '{
        "Username": {"S": "alexdebrie"}
      }' \
      --endpoint-url http://localhost:8000
  </code></pre>
  
  <p>But there was an error like this:</p>
  
  <blockquote>
    <p>Unknown options: {S:, alexdebrie}, }', Username:</p>
  </blockquote>
  
  <p>How can I handle this? </p>
  
  <p>PS: I am using Windows so instead of <code>\</code>, I used <code>^</code>.</p>