-
Seeking to return dictionary keys as list of strings and it was not obvious the syntax to do so nor did I find an existing issue or topic here that appeared to cover this use-case.
Where the returned body is a dictionary of objects and the key is the name I need but do not know up front and I am not interested in the dictionary values. {
"a-large-small": [
[
"path",
{
"d": "M21 14h-5"
}
]
],
"a-arrow-up": [
[
"path",
{
"d": "M3.5 13h6"
}
]
],
...
...
"sunset": [
[
"path",
{
"d": "M12 10V2"
}
]
]
} To return a list of icon names from those keys a-large-small |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @djasonic, What you are looking for cannot be done... for now. ```req
url: https://lucide.dev/api/icon-nodes
req-id: req-icon-nodes
save: cache/icon-nodes.json
show: json
format: <h1>{}</h1>
render
disabled
``` Here we are using |
Beta Was this translation helpful? Give feedback.
I'm adding a new option to
show
, it's called{gk}
(stands forget keys
) to make this process a lot easier. It should be UP in a bit. Here is a working example: