title: error passing json in rails (JSON::ParserError) "757: unexpected token in rails
body: <p>I am trying to make a request from another url that calls back to my railsapp with a json responce and i get the following error in the process</p>
  
  <pre><code>  757: unexpected token at 'https://voguepay.com/?v_transaction_id=demo-1355137288&amp;type=json'
    json (1.7.5) lib/json/common.rb:155:in `parse'
  </code></pre>
  
  <p>my controllers action is bellow</p>
  
  <pre><code>  def get_response
      @transaction_id = params[:transaction_id]
      response = JSON.parse("https://voguepay.com/?v_transaction_id=#{@transaction_id}&amp;type=json").body
    end
  </code></pre>
  
  <p>any idea what i am doing wrong</p>
  
  <p>I tried the url directly in my console window and i got the same error
  the url is
  <a href="https://voguepay.com/?v_transaction_id=demo-1345109950&amp;type=json" rel="nofollow">https://voguepay.com/?v_transaction_id=demo-1345109950&amp;type=json</a></p>