title: Dynamodb unmarshal map into struct
body: <p>I am trying to retrieve a column from dynamodb which is saved as <code>map[string][]string</code> (map with key as string and values as a list of string)</p>
  
  <p>example:</p>
  
  <pre><code>{ 
    { "string1": ["1", "2"]},
    { "string2": ["3", "4"]},
  }
  </code></pre>
  
  <p>I am getting the data but I am not able to unmarshal it and store it in the struct</p>
  
  <pre><code>type Record struct {
      listOfMap map[string][]string
  }
  
  scanInput := &amp;dynamodb.ScanInput{
      TableName:            aws.String("someTable"),
      ProjectionExpression: aws.String("desiredColumnToRetrieve"),
  }
  
  dynamodbOutput, err := svc.dynamodb.Scan(scanInput)
  if err != nil {
      log.Errorf("dynamodb.Scan() error - %s", err)
  }
  
  fmt.Println(dynamodbOutput)
  
  records := []Record{}
  
  err = dynamodbattribute.UnmarshalListOfMaps(dynamodbOutput.Items, &amp;records)
  if err != nil {
      log.Errorf("dynamodbattribute.UnmarshalListOfMaps() error - %s", err)
  }
  
  fmt.Println(records)
  </code></pre>
  
  <p>dynamodb output (this output is from the above print statements):</p>
  
  <pre><code>{
    Count: 2,
    Items: [{
        desiredColumnToRetrieve: {
          M: {
            string1: {
              L: [{
                  S: "1"
                },{
                  S: "2"
                }]
            }
          }
        }
      },{
        desiredColumnToRetrieve: {
          M: {
            string2: {
              L: [{
                  S: "3"
                },{
                  S: "4"
                }]
            }
          }
        }
      }],
    ScannedCount: 2
  }
  {[map[] map[]}
  </code></pre>
  
  <p>The data is not getting saved to the struct/map</p>