title: team city api returns json example
body: <p>I'm struggling with getting results from the team city api in JSON</p>
  
  <pre><code>require 'open-uri'
    url = ".../app/rest/buildQueue/"
    c = Curl::Easy.new(url) do |curl| 
      curl.headers["Content-type"] = "application/json"
      curl.http_auth_types = :basic
      curl.username = 'user'
      curl.password = 'password'
    end
    c.perform
    puts c.body_str
  </code></pre>
  
  <p>I get a bunch of xml text</p>