Add an optional `Name of Data ("": Obtain from Variant)` input to `Variant to JSON Text.vi`

Issue #107 new
Jim Kring created an issue

There are some times when I would like to be able to pass a data name into `Variant to JSON Text.vi` instead of using the data name inside the variant. My use case is a situation where I am constructing a variant array of variants (to pass into `Variant to JSON Text.vi1`) and setting the data name is a computationally expensive operation. So, I’d rather simply pass in the data name as a string and ignore the data name inside the variant. [See also Issue 105].

Comments (1)

  1. James Powell repo owner

    Won't work, as JSON Values aren’t named. They are only named as items inside a JSON Object. If you look, you’ll see the name is only used to look for tags in the name which control haw things are converted to JSON (such as an empty name in a Cluster, or a <JSON> or <JOBJ> tag on a String).

  2. Log in to comment