Updated parseJSON to use incremental parsing and significantly reduced memory usage.