The thing is, I have a huge file with like a million of those objects like I included in the pastebin. I'm afraid Trying to read in that whole thing and then split(/\n/) it might lead to memory issues. That would also effectively chop the strings. Is there a way to successfully read it a line (= one json object) at a time?