title: AttributeError: 'list' object has no attribute 'get'?
body: <p>This is the script</p>
  
  <pre><code>def validate_record_schema(record):
          device = record.get('Payload', {})
          manual_added= device.get('ManualAdded', None)
          location = device.get('Location', None)
          if isinstance(manual_added, dict) and isinstance(location, dict):
              if 'Value' in manual_added and 'Value' in location:
                  return False
          return isinstance(manual_added, bool) and isinstance(location, str)
  
      print([validate_record_schema(r) for r in data])
  </code></pre>
  
  <p>This is json data</p>
  
  <pre><code>data = [{
          "Id": "12",
          "Type": "DevicePropertyChangedEvent",
          "Payload": [{
              "DeviceType": "producttype",
              "DeviceId": 2,
              "IsFast": false,
              "Payload": {
                  "DeviceInstanceId": 2,
                  "IsResetNeeded": false,
                  "ProductType": "product",
                  "Product": {
                      "Family": "home"
                  },
                  "Device": {
                      "DeviceFirmwareUpdate": {
                          "DeviceUpdateStatus": null,
                          "DeviceUpdateInProgress": null,
                          "DeviceUpdateProgress": null,
                          "LastDeviceUpdateId": null
                      },
                      "ManualAdded": {
                      "value":false
                      },
                      "Name": {
                          "Value": "Jigital60asew",
                          "IsUnique": true
                      },
                      "State": null,
                      "Location": {
                      "value":"bangalore"
                     },
                      "Serial": null,
                      "Version": "2.0.1.100"
                  }
              }
          }]
      }]
  </code></pre>
  
  <p>For the line <code>device = device.get('ManualAdded', None)</code>, I am getting the following error: <code>AttributeError: 'list' object has no attribute 'get'.</code></p>
  
  <p>please have a look and help me to solve this issue</p>
  
  <p>Where i am doing mistake... </p>
  
  <p>How can i fix this error?</p>
  
  <p>Please help me to solve this issue</p>