The getJSONValue function is unable to find keys with hyphen in the key name #265

Open
opened 2026-01-19 18:33:27 +00:00 by michael · 0 comments
Owner

Originally created by @kryptonit1 on GitHub.

I'm trying to create a label that uses the getJSONValue function and the function seems to be unable to find keys that has a hyphen in the key name.

Command:
getJSONValue "$(curl -fs "https://updates.signiant.com/signiant_app/signiant-app-info-mac.json")" "signiant-app.osx.file"

Result:

getJSONValue:1: no matches found: (tested to work with up to 1GB string and 2GB file).
getJSONValue:2: no matches found: (using dot or bracket notation).
execution error: Error: ReferenceError: Can't find variable: app (-2700)

The getJSONValue function seems to ignore signiant- in the key path (signiant-app.osx.file).

The updated function in PR #912 does not seem to have this problem.

Originally created by @kryptonit1 on GitHub. I'm trying to create a label that uses the getJSONValue function and the function seems to be unable to find keys that has a hyphen in the key name. **Command:** `getJSONValue "$(curl -fs "https://updates.signiant.com/signiant_app/signiant-app-info-mac.json")" "signiant-app.osx.file"` **Result:** ``` getJSONValue:1: no matches found: (tested to work with up to 1GB string and 2GB file). getJSONValue:2: no matches found: (using dot or bracket notation). execution error: Error: ReferenceError: Can't find variable: app (-2700) ``` The getJSONValue function seems to ignore `signiant-` in the key path (`signiant-app.osx.file`). The updated function in PR #912 does not seem to have this problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Installomator/Installomator#265