jq '.shifts[] | select(.employee.name | startswith("Royal")) | { startDate: .startDate, endDate: .endDate }' /c/temp/foo.json -c
Note that, on Windows anyway, I really could only make it work in bash.