On Thursday, December 27, 2018 at 4:04:55 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 12:24 PM fugee ohu <fuge...@gmail.com > <javascript:>> wrote: > > > So then how > > 1) choose HTTP client > 2) send request > 3) parse response > > -- > Hassan Schroeder ------------------------ hassan.s...@gmail.com > <javascript:> > twitter: @hassan > Consulting Availability : Silicon Valley or remote >
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" -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0a7dff40-12b8-4004-95cb-543576cb20df%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.