Skip to content

Instantly share code, notes, and snippets.

@vdmit
Created April 30, 2019 19:45
Show Gist options
  • Save vdmit/25daf81f26b50d5bef16faa082f1f2d0 to your computer and use it in GitHub Desktop.
Save vdmit/25daf81f26b50d5bef16faa082f1f2d0 to your computer and use it in GitHub Desktop.
#!/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