Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env python3
import json
import pdb
import sys
def main():
filename = argv[0]
key = argv[1]
with open(filename) as f:
for record in json.load(f):
# Checks for non empty values
if record.get(key):
# Allows us to inspect data in python debugger
pdb.set_trace()
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.