title: Json to SQL ASP classic
body: <p>Can´t figure out how to solve this with ASP Classic, an external server will send me some Json to my site
  ex. www.mypage.com/getjson.asp</p>
  
  <pre class="lang-js prettyprint-override"><code>{"Userid":"112233","Member":Tom}
  </code></pre>
  
  <p>How can I fetch this and check if the Userid already exist, otherwise put it in the SQL</p>
  
  <p>If the userid exist I just have to answer </p>
  
  <pre class="lang-vb prettyprint-override"><code>response.Write "{""Userid"": true}"
  </code></pre>
  
  <p>Can I "convert" it to a querystring or somthing ?</p>
  
  <p><strong>Edit:</strong> 
  Thanks for all help, but I coundn´t get it to work with the tips in this thread
  But I managed to get the whole string whit this code</p>
  
  <pre><code>bytecount = Request.TotalBytes
  bytes = Request.BinaryRead(bytecount)
  
  Set stream = Server.CreateObject("ADODB.Stream")
      stream.Type = 1              
      stream.Open()                                   
          stream.Write(bytes)
          stream.Position = 0                             
          stream.Type = 2                 
          stream.Charset = "utf-8"                      
          s = stream.ReadText()               
      stream.Close()
  Set stream = nothing
  Response.Write =(s)
  </code></pre>
  
  <p>But now I need to figure put how to cleanup and split this,
  note that Member don´t have qoutes</p>
  
  <pre><code>{"Userid":"00004547552009","Member":1,"id":"0060a80040d9"}
  </code></pre>