Created
April 30, 2019 19:45
-
-
Save vdmit/25daf81f26b50d5bef16faa082f1f2d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import random | |
with open("jq-test-input.json", "w") as fd: | |
obj = {"key_one": random.random(), "key_two": random.random(), "key_three": random.random()} | |
fd.write("[\n") | |
for x in range(10*1000*1000): | |
if x != 0: | |
fd.write(",") | |
fd.write(json.dumps(obj)) | |
fd.write("\n") | |
fd.write("]") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment