TESTCASE:
$ cat << EOF | jq '.[] | {City, Latitude, Longitude}'; echo $? [ { "precision": "zip", "Latitude": 37.7668, "Longitude": -122.3959, "Address": "", "City": "SAN FRANCISCO", "State": "CA", "Zip": "94107", "Country": "US" }, { "precision": "zip", "Latitude": 37.371991, "Longitude": -122.026020, "Address": "", "City": "SUNNYVALE", "State": "CA", "Zip": "94085", "Country": "US" } ] EOF
TESTCASE:
$ cat << EOF | jq '.[] | {City, Latitude, Longitude}'; echo $?
"precision" : "zip",
"Latitude" : 37.7668,
"Longitude" : -122.3959,
"precision" : "zip",
"Latitude" : 37.371991,
"Longitude" : -122.026020,
[
{
"Address": "",
"City": "SAN FRANCISCO",
"State": "CA",
"Zip": "94107",
"Country": "US"
},
{
"Address": "",
"City": "SUNNYVALE",
"State": "CA",
"Zip": "94085",
"Country": "US"
}
]
EOF