scalarOrNull

Lookup a scalar number. Returns null when the key is missing or is not a primitive.