use R NA for JS null in spec list