code: def _collection_json_response(cls, resources, start, stop, depth=0):
      
  
      top_level_json_name = None
      if cls.__top_level_json_name__ is not None:
          top_level_json_name = cls.__top_level_json_name__
      else:
          top_level_json_name = 'resources'
  
      result_list = []
      for resource in resources:
          result_list.append(resource.as_dict(depth))
  
      payload = {}
      if start is not None:
          payload[top_level_json_name] = result_list[start:stop]
      else:
          payload[top_level_json_name] = result_list
  
      return jsonify(payload)
docs: Return the JSON representation of the collection *resources*.
  
      :param list resources: list of :class:`sandman.model.Model`s to render
      :rtype: :class:`flask.Response`