On Thu, 7 Feb 2019, 01:36 fugee ohu <fugee...@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?




> --
> 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/4bf97d21-4abb-48e7-b885-ee61f48f9424%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/4bf97d21-4abb-48e7-b885-ee61f48f9424%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAL%3D0gLsVe_3Nu83o8VxzpOks7DJGgyvoEkPcpjSqhcbPgkj_5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to