adapt searchbar to new json format