DEV Community

Discussion on: Table to json with jq and awk

Collapse
 
oguzismail profile image
oguz-ismail

Why not just

jq -Rn '[inputs/" "|{(.[0]):.[1]}]|add' file

???

Collapse
 
foursixnine profile image
Santiago Zarate • Edited

@that's even better! \o/ :) Will keep it in mind next time I need to do this! Thanks!