Hi folks,
I have the following structure /json like:
{
-
items: [
-
{
google_analytics_id: null
title: "abc"
type: "station"
masthead_file: null
slug: "abcd"
}
-
{
google_analytics_id: null
title: "xyz"
type: "station"
masthead_file: null
slug: "xyzt"
}
etc.
I want to iterate the array of hashes and return for example the
second hash or return the value from the second hash for title key.
Can you provide some guidelines ?
Thank you,
Dan
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.