Return search result in JSON format