Fixed chunk reconstruction and JSON parsing.