using null in yaml

I found that ~ is used for null instead of -,
when using mapped collection ~ can be used as value to represent null - (dash) did not work