From JSON Text.vim inconveniently returns an error.

Issue #51 new
Michael Aivaliotis created an issue

I’m not understanding why an error is returned in this scenario. The Find Item.vi upstream does not return an error if an item is not found but the From JSON Text.vim returns an error. Which requires me to use a case structure to disable the function if the item is not found upstream. Seems to defeat the purpose of having a default value input. No error should be generated if the JSON input is empty, just return the default.

Comments (1)

  1. James Powell repo owner

    Question: what errors do you want to have? If in all cases you want just the default, why are you connecting the error wires at all? Error wires are for returning a possible error.

    I’ve just recently had a request for an error to be thrown if ANY item is missing in converting to a Cluster, which is sort of the opposite of your request.

  2. Log in to comment