title: JSON::ParseError (822: unexpected token at '"')
body: <p>I am using JSON in Ruby and every time I run the program, I get the error of "unexpected token at." I am not sure what is going on, I tried reading information from other users that had the same problem, but I do not seem to figure out what is going on.</p>
  
  <p>This is my code for my .rb page:</p>
  
  <pre><code>def show
    URI.parse('http://robotrevolution.net/interface/int_order_options.php')
    http = Net::HTTP.new(uri.host, uri.port)
    http.use_ssl = false
    http.verify_mode = OpenSSL::SSL::VERIFY_PEER
  
    request = Net::HTTP::Post.new(uri.request_uri, initheader = {'Content-Type' =&gt; 'application/json'})
  
    request.basic_auth 'username', 'password'
    response = http.request(request)
  
    if response.code == "200"
      result = response.body.to_json.first
      @oc_order_options =  JSON.parse(result, :quirks_mode =&gt; true)
    else
      "ERROR"
    end
    return @oc_order_options
  end
  </code></pre>
  
  <p>And this is the code for my show page:</p>
  
  <pre><code>&lt;h1&gt; Display &lt;/h1&gt;
  
  &lt;%= @oc_order_options['name'][0]['value'] %&gt;
  </code></pre>
  
  <p>I really appreciate any responses that help me figure out what is going on, thank you.</p>