jq and Math functions jq and Math functions json json

jq and Math functions


With your input,

jq -c '{acres: (.lotsize/43560), soldOn: (.dateSold | strftime("%A %B %d, %Y")) }'

produces:

{"acres":1.5,"soldOn":"Friday April 11, 2008"}

Recent versions of jq support the environment variable TZ so you might want to look at strflocaltime.