Need an “Is Empty” function

Issue #32 resolved
James Powell repo owner created an issue

Currently, functions can return more than one thing that can be “nothing”:

“null”, ““, “{}”,”[]” can all represent “nothing”

I have had bugs where I have fed the JSON into a case structure and chosen the wrong thing (null versus ““ for example). It would be good to have one (or more?) test functions that return a True boolean for any of the “nothings”. Alternately, have a function that turns all the “empties” into a standard thing, like null, but passes all other JSON through.

Comments (2)

  1. Log in to comment