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}