vals
vals copied to clipboard
Fetch integer value from JSON
Hello, I'm trying to fetch integer values from AWS SECRET MANAGER json document, but with vals seems not possibile. Is there a supported solution out of the box ?
Example JSON
{ "secret": { "test": 1 } }
ref+awssecrets://dev?region=eu-central-1#/secret/test
Result using vals eval -f:
expand awssecrets://dev?region=eu-central-1#/secret/test: no value found for key secret/test
Thanks in advance
@ArtioDev PR is welcome.
I looked through code and found problem, if value of key is not string you will get "no value found for key" error. I have no time to fix it, but I want to do it for support all types (int, string, array). @ArtioDev