Modified file check from hidden to json