JSON Path (Dictionary): Allow to return Array i.e. to extract multiple strings

Good morning,

the JSON path (Dictionary) node unfortunately does not offer the ability to return an array. This required extration to be split into a multi step process. I’d like to propose to add the ability to return an array.

image

That would allow to extract the tags not as JSON but as a concatenated string right away:

[ "transformers", "gguf", "mergekit", "merge", "en", "base_model:mergekit-community/MN-Hekate-Enodia-12B", "base_model:quantized:mergekit-community/MN-Hekate-Enodia-12B", "endpoints_compatible", "region:us", "imatrix", "conversational" ]

Best
Mike

works fine for me:

how is your source looking like? is it actually an array or is it a frankenstein JSON that lacks half the proper formating?

1 Like

Yepp, that works. Oddly, though, the good old trick to output settings as variables did not yield or hinted towards that straight forward approach. Quite contrary, the UI is misleading since it misses the option to define returning an array while it is present on the regualr JSON Path node.

its present in the node description
image

3 Likes

Lol, I rarely have that window open. Thanks for reminding me to read the docs more often :rofl::+1::beers:

2 Likes