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

JQ transformation

$
0
0

Suppose I have a json object like this

    {"name": "abc","version": "1234"}{"name": "xyz","version": "6789"}

I want it to transform it to

{"abc": "1234","xyz" : "6789"}

I have tried map and reduce. But cant wrap my head around


Viewing all articles
Browse latest Browse all 657

Trending Articles



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