Also I have never done ”chunking” before but maybe you could split up each chunk by finding every “}” so you ensure you don’t mess up the information like if it’s the stopTimeUpdate array in the arrivals response then divide length by x or and round that result and then simultaneously process array[0…(Math.round(array.length / x))] and array[Math.round(array.length / x)), Math.round(array.length / x)) * 2] or something like that???
I’m not sure what data your trying to chunk sorry if this is completely not what you want :(