Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 611

jq merge 2 rows to 1

$
0
0
{"field": "@timestamp","value": "2024-08-20 23:00:13.426"}{"field": "@message","value": "Started-1"}{"field": "@timestamp","value": "2024-08-20 23:00:13.427"}{"field": "@message","value": "Started-2"}

Edited to show that the JSONs are repeating block

I have JSONs above which need to be merged as below. Please help

[  {"@timestamp": "2024-08-20 23:00:13.426","@message": "Started-1"  },  {"@timestamp": "2024-08-20 23:00:13.427","@message": "Started-2"  }]

Viewing all articles
Browse latest Browse all 611

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>