{
  "total_count": $autocomplete.size(),
  "incomplete_results": false,
  "rows": [
	#foreach ($res in $autocomplete.getPageOfHits())
	#if( ${foreach.count} > 1 ),#end
	#set($label = $searcherManager.getLabel($searcher,$res))
	{"id": "$res.get('id')", "name": #jesc($label), "sourcepath" : "$res.sourcepath"}
	#end
	]
}
