# Unusual behaviour of pointer in json\_foreach

**URL:** https://community.mp3tag.de/t/unusual-behaviour-of-pointer-in-json-foreach/64047
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [March 12, 2024, 2:57pm UTC](https://community.mp3tag.de/t/unusual-behaviour-of-pointer-in-json-foreach/64047 "2024-03-12T14:57:52Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [March 15, 2024, 3:12pm UTC](https://community.mp3tag.de/t/unusual-behaviour-of-pointer-in-json-foreach/64047/3 "2024-03-15T15:12:00Z")

</div>

Of course.

I will be sending you via direct message an example script in which I was able to replicate the issues, along with some details of what I intended the script to do to get those results.

Oh, and the 2nd quote I mentioned in the previous post wasn't referring the reported bug where it was from, but to the specific line

> [@\[F\] bug with json\_foreach](https://community.mp3tag.de/t/f-bug-with-json-foreach/16851/3):
>
> it's all because json\_foreach\_end goes to the root of the array after finishing i think instead of just going to the same element which was selected first.

which fit what I was also observing.

---

_[View the full topic](https://community.mp3tag.de/t/unusual-behaviour-of-pointer-in-json-foreach/64047)._
