underscore-cli icon indicating copy to clipboard operation
underscore-cli copied to clipboard

Feature request: better handling of large JSON files

Open mjball opened this issue 10 years ago • 0 comments

I have a >500 megabyte JSON file which I would like to format, but underscore-cli dies almost immediately:

λ  ~  underscore -i results.json print > pretty_results.json
FATAL ERROR: CALL_AND_RETRY_0 Allocation failed - process out of memory

Presumably it's trying to malloc a large amount of memory. If so, some sort of streaming might be a viable solution.

mjball avatar Mar 05 '14 00:03 mjball