On Thursday, February 7, 2019 at 8:55:29 AM UTC-5, Colin Law wrote: > > On Thu, 7 Feb 2019 at 11:25, fugee ohu <fuge...@gmail.com <javascript:>> > wrote: > >> >> >> On Thursday, February 7, 2019 at 3:57:03 AM UTC-5, Colin Law wrote: >>> >>> On Thu, 7 Feb 2019 at 07:49, Colin Law <cla...@gmail.com> wrote: >>> >>>> >>>> >>>> On Thu, 7 Feb 2019, 01:36 fugee ohu <fuge...@gmail.com wrote: >>>> >>>>> >>>>> >>>>> On Wednesday, February 6, 2019 at 5:04:55 PM UTC-5, Colin Law wrote: >>>>>> >>>>>> On Wed, 6 Feb 2019 at 21:42, fugee ohu <fuge...@gmail.com> wrote: >>>>>> >>>>>>> ... >>>>>>> JSON::ParserError: 784: unexpected token at >>>>>>> 'skuProducts=[{"skuAttr":"200007763:201336100;491:200004763#145cm","skuPropIds" >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> I understand why people get annoyed with your posts. What is the >>>>>> point of posting a string that is obviously not valid JSON and telling >>>>>> us >>>>>> that it generates a parser error? What else would you expect? >>>>>> >>>>>> Colin >>>>>> >>>>>> >>>>>> >>>>> I think I have it working but I haven't figured out how to access the >>>>> values from the json object yet >>>>> data=JSON.load(skudata.to_json) >>>>> puts data["skuPropIds"] >>>>> just returns true >>>>> >>>> >>>> What value would you expect the puts method to return? >>>> >>> >>> If you are worried about the fact that it did not appear to print the >>> value of data["skuPropids"] then either you have found a bug in puts (which >>> I think unlikely) or it did, in fact, print the value. I think that it is >>> more likely that it did print the value. >>> >>> Colin >>> >> >> The values should be as shown here They should be How do I print them >> {"skuAttr":"200007763:201336100;491:200004763#145cm","skuPropIds":"201336100,200004763" >> > > What do you get if you puts skudata["skuPropIds"]? > > Colin >
How can I tell which script generated up the content that's not visible in source? There's some selectable text on the page but not in source When I look at chrome dev tools->network->js->response for each running script on the page I still can't find the text Would help if I knew which script I was trying to read data from -- 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/518747ae-ed27-4c47-8977-2bfec925161b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.