I am working with a large json file (~ 100,000 lines) and should compress it to speed up the program. I want to remove all horizontal tabs, returns, etc., in order to minimize file size.
For example, if there was originally a line:
"name_id": "Richard Feynman",
"occupation": "Professional Bongos Player"
it should be compressed to:
"name_id":"Richard Feynman","occupation":"Professional Bongos Player"`
I browsed the Internet (forgive me if this is a simple answer, I'm new) and cannot find a command for the terminal that will help me do this. Any help would be greatly appreciated
source
share