using `|json` would let the state get an error if gid is a string, as it would not be converted. Using directly the `None` yaml value, and letting numbers as string be converted by yaml parser.