enable json response for search