# File lib/knife-solo/resources/patch_cookbooks/chef-solo-search/libraries/search/overrides.rb, line 76
    def search_roles(_query, start, rows, &block)
      _result = []
      Dir.glob(File.join(Chef::Config[:role_path], "*.json")).map do |f|
        # parse and hashify the role
        role = Chef::JSONCompat.from_json(IO.read(f))
        if _query.match(role.to_hash)
          _result << role
        end
      end
      return _result
    end