fix chunkification on large json input