             throw CIOError.invalidResponse
         }
 
-        
+
         let results = self.jsonToAutocompleteItems(jsonObjects: section)
         var metadata = json
         metadata[Constants.Response.singleSectionResultField] = nil

                                    }
                                }
                            }
                            
                            return arr + [first] + itemsInGroups
                        })
    }
    
    fileprivate func delegateMaximumGroupsShownPerResult(result: CIOAutocompleteResult, at index: Int) -> Int{
        return self.delegate?.maximumGroupsShownPerResult(result: result, at: index) ?? Int.max
    }
    
    fileprivate func delegateShouldParseResult(_ result: CIOAutocompleteResult, _ group: CIOGroup?) -> Bool?{
        return self.delegate?.shouldParseResult(result: result, inGroup: group)
    }

//
//  CIOAutocompleteResponseParser.swift
//  Constructor.io
//
//  Copyright © Constructor.io. All rights reserved.
