when error just return an empty JSON