Fix JSON format of search results