# Json\_foreach always executes once, even if the json array is empty

**URL:** https://community.mp3tag.de/t/json-foreach-always-executes-once-even-if-the-json-array-is-empty/66005
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [September 22, 2024, 4:17pm UTC](https://community.mp3tag.de/t/json-foreach-always-executes-once-even-if-the-json-array-is-empty/66005 "2024-09-22T16:17:26Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [August 3, 2026, 7:26pm UTC](https://community.mp3tag.de/t/json-foreach-always-executes-once-even-if-the-json-array-is-empty/66005/3 "2026-08-03T19:26:39Z")

</div>

Thank you for reporting! It's now fixed in [Mp3tag v3.36-beta.3](https://community.mp3tag.de/t/455).

I hope that not too many Tag Sources relied on the behavior that's now fixed.

---

_[View the full topic](https://community.mp3tag.de/t/json-foreach-always-executes-once-even-if-the-json-array-is-empty/66005)._
