title: Terminal: CURL | walk to JsonPath | prettyprint JSON
body: <p>I am looking for a possibility to print parts of a returned JSON document on the shell.</p>
  
  <p>Right now, I am piping a HTTP response from cURL to python to prettyprint it:</p>
  
  <pre><code>curl -vX GET http://foo.bar | python -mjson.tool
  </code></pre>
  
  <p>But now I would like to know how I could actually "walk" the path to a subarray?</p>
  
  <p>If was for example the returned JSON data: </p>
  
  <pre><code>{
  "value1": true,
  "value2": {
              "subvalue1": "foo",
              "subvalue2": "bar"
            }
  }
  </code></pre>
  
  <p>How could I only print the subarray in this example?</p>