Changing json response after failed search using API