title: How to insert json in dynamodb
body: <p>Here's my code.<br>
    I want to insert <code>asset_data</code> json into <code>asset_data</code> column.
  i am using aws sdk.
  It says aws sdk now has support for json.
  <a href="http://aws.amazon.com/releasenotes/SDK/JavaScript/1691866671551861" rel="noreferrer">http://aws.amazon.com/releasenotes/SDK/JavaScript/1691866671551861</a></p>
  
  <pre><code>var asset_data = {
      "name": "name" + i,
      "contentUrl": "http://www.hdwallpapersimages.com/nature-beauty-desktop-images/94892/",
      "size": 300,
      "headline": "headline",
      "description": "assetUrl reference for the creator",
      "encodingFormat": 'jpeg'
    };
  
    var params = {
      TableName: 'xyz',
      Item: { // a map of attribute name to AttributeValue
        "asset_id": {S: "asset" + i},
        "hit_id": {S: "0"},
        "created_date": {"S": Date.now().toString()},
        "status": {N: "0"},
        "operation": {S: "image_tagging"},
        "asset_data": {L: asset_data},
        "source": {S: "DAM"},
        "completed_date": {S: Date.now().toString()},
        "response_data": {S: "taged value"}
        // more attributes...
      },
  
      ReturnValues: 'NONE', // optional (NONE | ALL_OLD)
      ReturnConsumedCapacity: 'NONE', // optional (NONE | TOTAL | INDEXES)
      ReturnItemCollectionMetrics: 'NONE' // optional (NONE | SIZE)
    };
  
    db.putItem(params, function (err, data) {
      if (err) console.log(err); // an error occurred
      else console.log("inserted..."); // successful response
    });
  </code></pre>