title: How to prevent Ansible from re-ordering JSON?
body: <p>Given the following playbook fetching some data from some random <a href="http://jsonplaceholder.typicode.com/users" rel="nofollow noreferrer">webservice</a>:</p>
  
  <pre><code>---
  - name: sorting json
    hosts: localhost
    tasks:
     - name:
       uri:
         url: http://jsonplaceholder.typicode.com/users
         method: GET
         return_content: yes
       register: result
       ignore_errors: yes
  
  
     - debug: msg="{{result.content}}"
  </code></pre>
  
  <p>Ansible is reordering the json output:</p>
  
  <p>Output (first element of array, reordered):</p>
  
  <pre><code>    {
          "address": {
              "city": "Gwenborough",
              "geo": {
                  "lat": "-37.3159",
                  "lng": "81.1496"
              },
              "street": "Kulas Light",
              "suite": "Apt. 556",
              "zipcode": "92998-3874"
          },
          "company": {
              "bs": "harness real-time e-markets",
              "catchPhrase": "Multi-layered client-server neural-net",
              "name": "Romaguera-Crona"
          },
          "email": "Sincere@april.biz",
          "id": 1,
          "name": "Leanne Graham",
          "phone": "1-770-736-8031 x56442",
          "username": "Bret",
          "website": "hildegard.org"
      },
  </code></pre>
  
  <p>Whereas the original data is:</p>
  
  <pre><code> {
      "id": 1,
      "name": "Leanne Graham",
      "username": "Bret",
      "email": "Sincere@april.biz",
      "address": {
        "street": "Kulas Light",
        "suite": "Apt. 556",
        "city": "Gwenborough",
        "zipcode": "92998-3874",
        "geo": {
          "lat": "-37.3159",
          "lng": "81.1496"
        }
      },
      "phone": "1-770-736-8031 x56442",
      "website": "hildegard.org",
      "company": {
        "name": "Romaguera-Crona",
        "catchPhrase": "Multi-layered client-server neural-net",
        "bs": "harness real-time e-markets"
      }
    }
  </code></pre>
  
  <p>How to get a nice, formatted JSON which is not reordered?
  ( I have seen <a href="https://stackoverflow.com/questions/16870416/does-the-sequence-of-the-values-matter-in-a-json-object">this question</a>, it would still be nice if it was possible )</p>