Ruby on Rails
Friday, February 8, 2019
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> 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?ColinI think I have it working but I haven't figured out how to access the values from the json object yetdata=JSON.load(skudata.to_json) puts data["skuPropIds"]just returns trueWhat 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.ColinThe 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
Can you please try to reproduce the error
https://www.aliexpress.com/item/LEORY-RC-Robot-Intelligent-Programming-Remote-Control-Robotica-Toy-Biped-Humanoid-Robot-For-Children-Kids-Birthday/32837801078.html?spm=2114.search0104.3.1.778d6f2cAy3aFr&ws_ab_test=searchweb0_0,searchweb201602_1_10065_10130_10068_10890_10547_319_10546_317_10548_10545_10696_453_10084_454_10083_10618_10307_537_536_10902_10059_10884_10887_321_322_10103,searchweb201603_59,ppcSwitch_0&algo_expid=d5cd0569-2ed8-4d82-b1d2-93855d6fa037-0&algo_pvid=d5cd0569-2ed8-4d82-b1d2-93855d6fa037&transAbTest=ae803_4
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+unsubscribe@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/315ef20d-93d0-4928-b428-639b0d5b6424%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment