title: How to get the object in desired format from DynamoDb
body: <p>I have <code>ASP.Net Core</code> (<code>C#</code>) application with <code>DynamoDb</code> as datbase Below is my how my function looks like:-</p>
  
  <pre><code>public async Task&lt;object&gt; GetEvent(string eventId)
      {
          try
          {
  
  
              var req = new QueryRequest()
              {
                  TableName = _tableName,
                  KeyConditionExpression = "EventId = :v_Id",
                  ExpressionAttributeValues = new Dictionary&lt;string, AttributeValue&gt;()
                  {
                      { ":v_Id", new AttributeValue()
                      {
                          S = eventId
                      } },
                      {
                          ":v_isDeletedFlag",new AttributeValue()
                          {
                              BOOL = false
                          }
                      }
                  },
                  FilterExpression = "IsDeleted = :v_isDeletedFlag",
                  Limit = 1,
              };
              var res = await _dynamoClient.QueryAsync(req);
  
              if (res.HttpStatusCode == System.Net.HttpStatusCode.OK)
              {
  
                  return res.Items;
              }
              else
              {
                  throw new Exception("No such event found");
              }
          }
          catch (Exception ex)
          {
              throw;
          }
      }
  </code></pre>
  
  <p>But the above method returns the object as below:-</p>
  
  <pre><code>[
  {
   "CreatedOn": {
    "b": null,
    "bool": false,
    "isBOOLSet": false,
    "bs": [],
    "l": [],
    "isLSet": false,
    "m": {},
    "isMSet": false,
    "n": null,
    "ns": [],
    "null": false,
    "s": "Friday,16 August 2019 14.33.35",
    "ss": []
  },
  "IsAlcoholAllowed": {
    "b": null,
    "bool": false,
    "isBOOLSet": true,
    "bs": [],
    "l": [],
    "isLSet": false,
    "m": {},
    "isMSet": false,
    "n": null,
    "ns": [],
    "null": false,
    "s": null,
    "ss": []
  },
  "Description": {
    "b": null,
    "bool": false,
    "isBOOLSet": false,
    "bs": [],
    "l": [],
    "isLSet": false,
    "m": {},
    "isMSet": false,
    "n": null,
    "ns": [],
    "null": false,
    "s": "Hello Events",
    "ss": []
  },
  "Title": {
    "b": null,
    "bool": false,
    "isBOOLSet": false,
    "bs": [],
    "l": [],
    "isLSet": false,
    "m": {},
    "isMSet": false,
    "n": null,
    "ns": [],
    "null": false,
    "s": "Test Event Mumbai",
    "ss": []
  }}]
  </code></pre>
  
  <p>But what I want is the object with key &amp; value as below</p>
  
  <pre><code>[
  {
   "CreatedOn":  "Friday,16 August 2019 14.33.35",
   "IsAlcoholAllowed": false,
    "Description": "Hello Events"
  }]
  </code></pre>
  
  <p>How can I get this?</p>
  
  <p>Thanks!</p>