vals icon indicating copy to clipboard operation
vals copied to clipboard

Fetch integer value from JSON

Open artiotest opened this issue 1 year ago • 2 comments

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

artiotest avatar Dec 19 '23 09:12 artiotest

@ArtioDev PR is welcome.

yxxhero avatar Jan 21 '24 00:01 yxxhero

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

jpascal avatar Apr 11 '24 15:04 jpascal