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

Printing multiple values on the same line

$
0
0

I'm trying to parse a JSON document and print a couple of values on the same line. Is there a way to take this document:

{"fmep": {"foo": 112,"bar": 234324,"cat": 21343423  }}

And print:

112 234324

I get the values I want but they are printed on separate lines:

$ echo '{ "fmep": { "foo": 112, "bar": 234324, "cat": 21343423 } }' | jq '.fmep|.foo,.bar'112  234324

Viewing all articles
Browse latest Browse all 657

Trending Articles



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