shtirlic/sinatra-jsonp — Issue #1: Json response wrapped in double quotes
Author: zimok
Created: 2012-03-02 13:42:45+00:00
State: open

I'm experiencing something strange with your gem.
Please consider I'm very new to Ruby and Sinatra.
I'm using `JSONP` to output a json that comes from a Shopify API request.

Wether I specify a callback or not, I've the returned JSON wrapped in double quotes and every key/value is escaped:

" {\"custom_collections\": \"title\"} "

The problem is that jQuery is not able to parse the JSON, and I would avoid to use `eval`

I'm simply calling
JSONP response.body

where `response` is the returned object of a `Net::HTTP.Get(uri)` request