Invoke jq on every new json object printed by Python script, not just on completion
I have a python script that watches a socket and when data is received it writes JSON to stdout. This sample script below illustrates the behaviour, outputting new JSON every 3 seconds. import json, time def new_json(n): frame = {…