Add throw exception option to json path if the path is invalid