On Tue, 24 May 2016 08:11:09 +0200, Sönke Ludwig wrote:

The generic way is to use value.kind == JSONValue.Kind.null_. But I
guess a convenience method really makes sense in this case. I'll add
isNull.

Cool. Thanks! There isn't even anything in stdx.data.json.value which mentions kind or Kind, so I definitely wasn't stumbling on that. On a related note, it would be nice to have a function similar to get which returned Nullable!T for those cases where you want to operate on a Nullable!T rather than just checking for null and doing something special for null. In either case, having isNull would be a great addition.

  • Jonathan M Davis