diff options
author | Bryan Newbold <bnewbold@archive.org> | 2019-12-18 14:53:33 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2019-12-18 14:53:35 -0800 |
commit | 1a45fe3f3ef3122355f49470fbbcd6dc82c959b2 (patch) | |
tree | 9f9e60c2814c91ad2b394c95b5ff5c9c9345d72d /python/ia_pdf_match.py | |
parent | 0ea8bfb3485bc4db5cb7a17397d6c37f407a65b4 (diff) | |
download | sandcrawler-1a45fe3f3ef3122355f49470fbbcd6dc82c959b2.tar.gz sandcrawler-1a45fe3f3ef3122355f49470fbbcd6dc82c959b2.zip |
refactor: sort keys in JSON output
This makes debugging by tailing Kafka topics a lot more readable
Diffstat (limited to 'python/ia_pdf_match.py')
-rwxr-xr-x | python/ia_pdf_match.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/ia_pdf_match.py b/python/ia_pdf_match.py index bc814de..c5a5e11 100755 --- a/python/ia_pdf_match.py +++ b/python/ia_pdf_match.py @@ -102,7 +102,7 @@ def run(): obj = json.loads(line) match = parse(obj) if match: - print(json.dumps(match)) + print(json.dumps(match, sort_keys=True)) if __name__ == '__main__': run() |