title: Can't get JSON POST response
body: <p>I have this code:</p>
  
  <pre><code>        WebRequest request = WebRequest.Create("https://getpocket.com/v3/oauth/request");
          request.Proxy = WebRequest.DefaultWebProxy;
          request.Credentials = System.Net.CredentialCache.DefaultCredentials; ;
          request.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
          request.Method = "POST";
          string postData = "{\"consumer_key\":\"keyIsHere\",\"redirect_uri\":\"pickpocket:authorizationFinished\"}";
          byte[] byteArray = Encoding.UTF8.GetBytes(postData);
          request.ContentType = "application/json; charset=utf-8";
          request.ContentLength = byteArray.Length;
          Stream dataStream = request.GetRequestStream();
          dataStream.Write(byteArray, 0, byteArray.Length);
          dataStream.Close();
          WebResponse response = request.GetResponse();
          Console.WriteLine(((HttpWebResponse)response).StatusDescription);
          dataStream = response.GetResponseStream();
          StreamReader reader = new StreamReader(dataStream);
          string responseFromServer = reader.ReadToEnd();
          Console.WriteLine(responseFromServer);
  </code></pre>
  
  <p>It returns <code>code=12345456787blahblah</code> instead of the JSON response: <code>{"code":"12345456787blahblah"}</code> and I can't figure out why. I got the POST request/response code from <a href="http://msdn.microsoft.com/en-us/library/debx8sh9.aspx" rel="nofollow">MSDN</a> and the correct request data from the <a href="http://getpocket.com/developer/docs/authentication" rel="nofollow">Pocket API</a></p>