title: Parsing json using jq
body: <p>I am trying to get the difficulty value out of a JSON structure using jq on the linux command line:</p>
  
  <pre><code>./jq '{result: .difficulty}' status.txt
  </code></pre>
  
  <p>(The JSON is held in a file called status.txt - shown below) But try as I might I keep getting: </p>
  
  <pre><code>{
    "result": null
  }
  </code></pre>
  
  <p>Returned, can someone tell me what I am doing wrong?</p>
  
  <pre><code>{
     "result":{
        "version":1030000,
        "protocolversion":60001,
        "walletversion":60000,
        "balance":2600.00020000,
        "blocks":16042,
        "connections":6,
        "proxy":"",
        "difficulty":28.20775972,
        "testnet":false,
        "keypoololdest":1382340615,
        "keypoolsize":94,
        "paytxfee":0.00000000,
        "mininput":0.00010000,
        "unlocked_until":0,
        "errors":""
     },
     "error":null,
     "id":"curltest"
  }
  </code></pre>