If you have jq installed do this:
jq
yabai -m query --windows | jq '.[] | { app: .app, title: .title }'
Otherwise, just run the yabai command itself:
yabai -m query --windows