return search elements as json