I'm using HTTParty to make calls to an API. When I have callback in the url it causes MultiJson::DecodeError:
MultiJson::DecodeError in PagesController#home
756: unexpected token at '12345({"label":"daydata","data":[[1335484800883,69586],
[1335571201001,17725]]});
My get call looks like this:
@data = HTTParty.get("http://powermeters.appspot.com/getdays?id=1234567890&from=2012-04-24&to=2012-04-29&callback=12345")
Does anyone know what is causing this, and how to solve it?