fix: json shall be checked beforehand