title: Is it a good idea to store an Object in Amazon Dynamo as Json?
body: <p>After looking at Amazon DynamoDB I have been trying to figure out how to store my complex objects that I create in my code and want to persist.  I understand how I would store these objects in a Relational Database like MySql but how would I store them in DynamoDB?</p>
  
  <p>I can think of one way....turn them into Json and store the Json representation of the Object in DynamoDB.  To get them out of  DynamoDB again I would marshall them back from Json to my Object representation in my code.</p>
  
  <p>Here is an example:</p>
  
  <p>For this type of Object:
  A Car has an Engine Which has many Parts. Each Part has a Serial Number, a Life Span and a Replacement Value.
  Now I can turn the Car into json which would look something like this:</p>
  
  <pre><code>{
      "engine": {
          "parts": [
              {
                  "serialNumber": "1234",
                  "lifeSpan": 10,
                  "replacementValue": 100
              },
              {
                  "serialNumber": "5678",
                  "lifeSpan": 1,
                  "replacementValue": 200
              }
          ]
      }
  }
  </code></pre>
  
  <p>Should I just store the above Json in Dynamo as Key: CarName 'Jaguar',  Value [above json] ?  Or is there a better way to store the Car Object?</p>