code: def _normalize_json_search_response(self, json):
          
          result = {}
          if 'facet_counts' in json:
              result['facet_counts'] = json[u'facet_counts']
          if 'grouped' in json:
              result['grouped'] = json[u'grouped']
          if 'stats' in json:
              result['stats'] = json[u'stats']
          if u'response' in json:
              result['num_found'] = json[u'response'][u'numFound']
              result['max_score'] = float(json[u'response'][u'maxScore'])
              docs = []
              for doc in json[u'response'][u'docs']:
                  resdoc = {}
                  if u'_yz_rk' in doc:
                      # Is this a Riak 2.0 result?
                      resdoc = doc
                  else:
                      # Riak Search 1.0 Legacy assumptions about format
                      resdoc[u'id'] = doc[u'id']
                      if u'fields' in doc:
                          for k, v in six.iteritems(doc[u'fields']):
                              resdoc[k] = v
                  docs.append(resdoc)
              result['docs'] = docs
          return result
docs: Normalizes a JSON search response so that PB and HTTP have the
          same return value