You might want to use ijson library for processing large json files in python without running into memory issues. Here is a detailed article on how to use it.