Ruby on Rails
Wednesday, January 30, 2019
On Wednesday, January 30, 2019 at 6:54:36 AM UTC-5, Colin Law wrote:
On Wed, 30 Jan 2019 at 11:19, fugee ohu <fuge...@gmail.com> wrote:
> ...
> puts parsed_obj["results"] shows the entire results but `puts parsed_obj["results"]["productId"] gets me error no implicit conversion of String into Integer
Show us what puts parsed_obj["results"] gives. If it is long then
from the start up to where productID occurs.
Colin
{"productId"=>32970292001, "sellerId"=>235696817, "oriMinPrice"=>"US $50.00", "oriMaxPrice"=>"US $50.00", "productTitle"=>"Paid function", "minPrice"=>"US $50.00", "maxPrice"=>"US $50.00", "orders"=>"1", "productImage"=>"//ae01.alicdn.com/kf/HTB10AX7aPLuK1Rjy0Fhq6xpdFXa5.jpg", "productDetailUrl"=>" ...
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/5cb40b24-e833-477c-a6b9-302228dba48a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment