title: JSON representation PynamoDB Instance
body: <p>I am having trouble getting the JSON representation from PynamoDB instance. Here is the Model.</p>
  
  <pre><code>class MyTest(Model):
      """
      Model class representing the Golden table attributes.
      """
  
      class Meta:
          table_name = "my-test"
  
      # Query Fields
      Id = UnicodeAttribute(hash_key=True)
      SomeInfo = MapAttribute(default={})
      SomeInfo1 = UnicodeAttribute(null=True)
  </code></pre>
  
  <pre><code>my_test = MyTest(Id='123', SomeInfo={}, SomeInfo1='testing')
  </code></pre>
  
  <p>What I need is JSON representation of my_test.</p>
  
  <p>Things I have tried are.</p>
  
  <ol>
  <li><p>my_test.to_dict() - This gave a non attribute error</p></li>
  <li><p>json.dumps(my_test.to_dict(), indent=2)</p></li>
  </ol>
  
  <p>Any help would be appreciated.</p>