Listing, Iterating, and Loading JSON in Ansible Playbooks

I just had to work with JSON in Ansible, and iterate through some data. It took me a few efforts of debugs before I got it, so putting it here for posterity, in hopes to help someone else. Eventually, my Ansible playbook will be making a RESTful call to pull the data. So, to start, I put the example JSON data the call would get into a file. I called the file “data.json” and put it in the same directory as my playbook. . ├── data.json └── json_iter.yml 0 directories, 2 files My example data.json looks like this: {"webInfLib":[{"contextRoot"...