# 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:** 9

<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 7, 2025, 4:38am UTC](https://community.mp3tag.de/t/json-select-without-a-key/70274/9 "2025-12-07T04:38:58Z")

</div>

> [@rboss](#):
>
> 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)
> 
> ```

On Mp3tag v3.33-beta.5 the results are now:

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

```

Thank You 🤟 very much @Florian.

> [@arb](#):
>
> I noticed a funky thing in debug files when an object is selected that it reveals its internal index (0-based).

Yes it does. And it's a godsend. 👼

I know this because I remember (vividly) the exact bug that eventually led to this addition. If you're interested you can read about it here

> [@Unusual behaviour of pointer in json\_foreach](https://community.mp3tag.de/t/unusual-behaviour-of-pointer-in-json-foreach/64047):
>
> Hello, I have seen different descriptions of this bug in other topics, but apparently in 3.24a it showed up again. When working in JSON input mode, navigating to a nested array and using json\_foreach will return the selected elements of that array correctly. However, after json\_foreach\_end the current pointer jumps to the root of the JSON data instead of the expected behavior of going up one level to the json object where said array is nested. What I found additionally (and could not fin…

Before this we just had to mentally visualize (and believe) that the pointer would move where it was supposed to relative to its previous position during JSON data operations, which didn't always happened.

---

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