On Friday, December 28, 2018 at 11:04:37 AM UTC-5, Colin Law wrote: > > On Fri, 28 Dec 2018 at 15:53, fugee ohu <fuge...@gmail.com <javascript:>> > wrote: > > ... > > I don't know what a valid json response is supposed to look like Also I > don't know if it makes a difference they're using Struts framework > > Once again I have googled for a link for you > https://www.w3schools.com/whatis/whatis_json.asp > <https://www.google.com/url?q=https%3A%2F%2Fwww.w3schools.com%2Fwhatis%2Fwhatis_json.asp&sa=D&sntz=1&usg=AFQjCNEQIe0yLKaovjXKOPTMWVDDxFc-5w> > > > Colin >
Thanks The response I'm trying to parse is JSONP which is javascript (not json) and has some prepending like /**/jQuery18307882644047003491_1545786199753 so I have to strip it out of the response or make my call to the script without the callback maybe? -- 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/6182f069-1033-46cb-902e-bdfbac987b66%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.