ansible/ansible — pull request #3122 by zonk1024 (2013-06-04 22:23:25+00:00)
Title: Added json flag to command, which will cause command to attempt to parse...

... stdout and expose it to register.

example:

tasks:
- name: grab json
local_action: command /home/ubuntu/i_output_json json=true
register: ioj_output

- name: debug ioj_output
debug: msg='${item}'
with_items: ${ioj_output.json}