# Json\_select without a key

**URL:** https://community.mp3tag.de/t/json-select-without-a-key/70274
**Category:** Web Sources Discussion
**Created:** [December 3, 2025, 3:07pm UTC](https://community.mp3tag.de/t/json-select-without-a-key/70274 "2025-12-03T15:07:44Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![rboss](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rboss](https://community.mp3tag.de/u/rboss)
#### Post date: [December 4, 2025, 2:36am UTC](https://community.mp3tag.de/t/json-select-without-a-key/70274/6 "2025-12-04T02:36:26Z")

</div>

> [@arb](#):
>
> If given the same ability to read unnamed/unkeyed targets, could `json_select_array` solve this?

I had to run a few tests to be sure, but the ability to read unnamed root arrays seems to be limited to `json_foreach`.

Given a sample _ **named** _ JSON array of literals and a few test commands:

```auto
Use "{"array":["a","b","c","d"]}"
json "ON" "current"
json_select_array "array" -1 ","
json_select_array "array" 1
json_foreach "array"
json_foreach_end

```

I get (respectively):

```auto
a,b,c,d ##_ json_select_array "array" -1 ","
a ##_ json_select_array "array" 1
4 ##_ json_foreach "array" ---> (number of literals in array)

```

The same (array name removed) commands on the **unnamed** variant:

```auto
Use "["a","b","c","d"]"
json "ON" "current"
json_select_array "" -1 ","
json_select_array "" 1
json_foreach ""
json_foreach_end

```

now returns

```auto
<empty> ##_ json_select_array "" -1 ","
<empty> ##_ json_select_array "" 1
4 ##_ json_foreach "" ---> (also number of literals in array)

```

So it would seem that

> [@json\_foreach on root array](https://community.mp3tag.de/t/json-foreach-on-root-array/19518/2):
>
> Thanks for pointing. I've added support for unnamed root arrays with [Mp3tag v2.85a](http://developer.mp3tag.de).

only `json_foreach ""` has support for unnamed root arrays, unlike `json_select_array`.

@Florian can I bother you ~~again~~ to chime in an opinion on this, please? 😅

---

_[View the full topic](https://community.mp3tag.de/t/json-select-without-a-key/70274)._
