# JSON Parsing - Counting inside an array, not the array itself

**URL:** https://community.mp3tag.de/t/json-parsing-counting-inside-an-array-not-the-array-itself/50614
**Category:** Web Sources Discussion
**Created:** [October 27, 2020, 9:52pm UTC](https://community.mp3tag.de/t/json-parsing-counting-inside-an-array-not-the-array-itself/50614 "2020-10-27T21:52:59Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [July 21, 2023, 9:34pm UTC](https://community.mp3tag.de/t/json-parsing-counting-inside-an-array-not-the-array-itself/50614/5 "2023-07-21T21:34:24Z")

</div>

@Florian, you've implemented this. I forgot I asked for this.

> [@Json\_foreach and json\_foreach\_reverse access counter](https://community.mp3tag.de/t/json-foreach-and-json-foreach-reverse-access-counter/61578/2):
>
> This is now available as json\_foreach\_counter with [Mp3tag v3.21b](https://community.mp3tag.de/t/455) with an option parameter for the number of digits padded with leading zeros if necessary. json\_foreach\_counter 1 Returns: 1,2,3,4 json\_foreach\_counter 2 Returns: 01,02,03,04

---

_[View the full topic](https://community.mp3tag.de/t/json-parsing-counting-inside-an-array-not-the-array-itself/50614)._
