A file is received in which a JSON array is written. The file can be large (up to 200MB). It is necessary to check the array for compliance with the JSON format (and I would also like to produce formatting) and write the file to the storage. In memory, all 200MB do not want to load.
Tell me how to do it in parts, so to speak, to transfer data from one file to another, without loading the entire file into memory.
For example:
[ [ 1234, 1234, 1234, 465 ], [ 1234, 1234, 1234, 1234 ], [ 1234, 1234, 1234, 1234 ], [ 1234, 1234, 1234, 1234 ] ] Need to get.
1234,1234,1234,465 1234,1234,1234,1234 1234,1234,1234,1234 1234,1234,1234,1234