Skip to content

Instantly share code, notes, and snippets.

@mmccaff
mmccaff / json-split.py
Created September 30, 2015 20:05 — forked from 97-109-107/json-split.py
A tiny python thing to split big json files into smaller junks.
#!/usr/bin/env python
# based on http://stackoverflow.com/questions/7052947/split-95mb-json-array-into-smaller-chunks
# usage: python json-split filename.json
# produces multiple filename_0.json of 1.49 MB size
import json
import sys
with open(sys.argv[1],'r') as infile:
o = json.load(infile)