Nullable types in JSON

Just as a personal reminder: This is the way to handle “nullable” types in JSON.

“properties”:{

“name”:{ “type”: “string”},

“twitterhandle”:{ “type”: [“string”, “null”]}

}

It is not really a nullable type. It is just an array of possible types. It might be [“number”, “string”] but who uses that?