Wow, that actually works! Thanks so much, Jeffrey!

This isn't originally my code so I don't know why that

set tData pInput.ReadLine(,.tStatus, .tEOL)

part is there and tdata is used as argument instead of pinput but probably for some reason? So even thou I'm happy your suggestion actually works, I'm also worried if that change breaks something else. But on the other hand, it did not on my initial tests anyway. I get exactly the same output with those json files that worked earlier but now also larger files work fine. Hmmm...