title: Write a dict on aws dynamodb as avS with python
body: <p>I would like to store a dictionary on dynamo DB so:</p>
  
  <pre><code>{"amount":"2.9","date":[]}
  </code></pre>
  
  <p>and I know how to do it with Haskell. </p>
  
  <p><code>formattedInfo = avS .~ info $ attributeValue</code> from <code>Network.AWS.DynamoDB</code></p>
  
  <p>but when I try it with python:</p>
  
  <pre><code>formatted_data = {'amount': str(data['amount']), 'date': data['date']}
  
  if 'Item' in item_response:
      table.update_item(
          Key={
              's3ObjectKey': s3_key
          },
          UpdateExpression='SET kiData = :val1',
          ExpressionAttributeValues={
              ':val1': formatted_data
          }
      )
  else:
      table.put_item(
          Item={
              's3ObjectKey': s3_key,
              'kiData': formatted_data
          }
      )
  </code></pre>
  
  <p>I get this <code>{ "amount" : { "S" : "2.9" }, "date" : { "L" : [ ] }}</code></p>
  
  <p>And it's not that bad, but it isn't as confortable as <code>{"amount":"2.9","data":[]}</code></p>
  
  <p>does anybody know, how I could do it that way? </p>