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

<div class="post-metadata">

### Author: ![yorickausyps](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/f6c823/32.png) [@yorickausyps](https://community.mp3tag.de/u/yorickausyps)
#### Post date: [August 4, 2026, 9:55am UTC](https://community.mp3tag.de/t/json-foreach-always-executes-once-even-if-the-json-array-is-empty/66005/4 "2026-08-04T09:55:19Z")

</div>

Thank you for fixing it.

> [@Florian](#):
>
> I hope that not too many Tag Sources relied on the behavior that's now fixed.

One tag source, I know of, that relied on this "feature" was the [[WS] Bandcamp (search by URL)](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/) up to version 0.4.5, if used for single track URLs. In the newer versions from 0.4.6 on this issue had already been handled.

---

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