search function with new json file working