Trying to use jq to beautify output in terminal in real-time using telnet
I downloaded and installed jq on my mac and I executed a telnet code in the terminal to try and make the output readable
telnet 192.168.31.2 8085 | grep -A 1 -e 'LOG DEBUG : sending a POST request to https://analytics-ingestion.staging-public.tubi.io/analytics-ingestion/v2/single-event' -e 'received' | jq '.'
I basically see a line by line outline of the output:
"event":{"page_load":{"category_list_page":{},"load_time":257,"status":"SUCCESS"}}
I was expecting the format to be in nice json format - I looked everywhere but I can't seem to find how to append jq on telnet