title: Parsing JSON with Unix tools
body: <p>I'm trying to parse JSON returned from a curl request, like so:</p>
  
  <pre><code>curl 'http://twitter.com/users/username.json' |
      sed -e 's/[{}]/''/g' | 
      awk -v k="text" '{n=split($0,a,","); for (i=1; i&lt;=n; i++) print a[i]}'
  </code></pre>
  
  <p>The above splits the JSON into fields, for example:</p>
  
  <pre><code>% ...
  "geo_enabled":false
  "friends_count":245
  "profile_text_color":"000000"
  "status":"in_reply_to_screen_name":null
  "source":"web"
  "truncated":false
  "text":"My status"
  "favorited":false
  % ...
  </code></pre>
  
  <p>How do I print a specific field (denoted by the <code>-v k=text</code>)?</p>