Implemented the search with fmt=json