Fixed JSON error with large files