title: Getting AttributeError error 'str' object has no attribute 'get'
body: <p>I am getting an error while working with JSON response:</p>
  <pre><code>Error: AttributeError: 'str' object has no attribute 'get'
  </code></pre>
  <p>What could be the issue?</p>
  <p>I am also getting the following errors for the rest of the values:</p>
  <p>***<em><strong>TypeError: 'builtin_function_or_method' object is not subscriptable</strong></em></p>
  <p><em><strong>'Phone': value['_source']['primaryPhone'],
  KeyError: 'primaryPhone'</strong></em>***</p>
  <pre><code># -*- coding: utf-8 -*-
  import scrapy
  import json
  
  
  class MainSpider(scrapy.Spider):
      name = 'main'
      start_urls = ['https://experts.expcloud.com/api4/std?searchterms=AB&amp;size=216&amp;from=0']
  
  def parse(self, response):
  
      resp = json.loads(response.body)
      values = resp['hits']['hits']
  
      for value in values:
  
          yield {
              'Full Name': value['_source']['fullName'],
              'Phone': value['_source']['primaryPhone'],
              &quot;Email&quot;: value['_source']['primaryEmail'],
              &quot;City&quot;: value.get['_source']['city'],
              &quot;Zip Code&quot;: value.get['_source']['zipcode'],
              &quot;Website&quot;: value['_source']['websiteURL'],
              &quot;Facebook&quot;: value['_source']['facebookURL'],
              &quot;LinkedIn&quot;: value['_source']['LinkedIn_URL'],
              &quot;Twitter&quot;: value['_source']['Twitter'],
              &quot;BIO&quot;: value['_source']['Bio']
          }
  </code></pre>