diff options
Diffstat (limited to 'python/kafka_grobid.py')
-rwxr-xr-x | python/kafka_grobid.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/kafka_grobid.py b/python/kafka_grobid.py index dd6ab63..05e48bd 100755 --- a/python/kafka_grobid.py +++ b/python/kafka_grobid.py @@ -282,7 +282,7 @@ class KafkaGrobidWorker: grobid_output.get('key'), status)) sys.stdout.flush() - producer.produce(json.dumps(grobid_output).encode('utf-8')) + producer.produce(json.dumps(grobid_output, sort_keys=True).encode('utf-8')) sequential_failures = 0 else: sys.stderr.write("failed to extract: {}\n".format(status)) |