On Thu, Dec 27, 2018 at 2:00 PM fugee ohu <[email protected]> wrote:
> Net::HTTP.get(<url>) returns a string
> data = JSON.parse(response)
> JSON::ParserError: 765: unexpected token at
> 'jQuery18300000644047005491_1545822229753({"success":true,"code":0,"results":[{"productId"
Did you ask for JSON data via the Accept request header ?
What is the Content-Type response header you get back?
--
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan
Consulting Availability : Silicon Valley or remote
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yB7%3DZafjpL2jDmu6XnBhmwzuaHB3EYgLGgpX%3DBOR3A2dA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.