JSON JMES Query need solution for proper format

Hi All,

I am referring https://www.middlewareinventory.com/blog/ansible-playbook-read-json-file/ → Complex JSON JMES Queries and Ansible Playbook

Per this i see it should be like below screenshot output but when i test my end i see different format.

could anyone please suggest if something missing my ansible configuration file or reason so i am getting diff format?

my side output:

enter image description here

actual output:

enter image description here

It’s the same data, only you’re getting it in YAML format, while the article you referenced shows it in JSON format. The format you get is determined by which callback plugin is active. See https://docs.ansible.com/ansible/latest/plugins/callback.html for details.

Thank you for your response ans clear explanation.