Skip to content

Instantly share code, notes, and snippets.

@marcelosomers
Created January 20, 2014 17:14
Show Gist options
  • Save marcelosomers/8524345 to your computer and use it in GitHub Desktop.
Save marcelosomers/8524345 to your computer and use it in GitHub Desktop.
Parsing JSON in Ruby
<% json = File.read("data/data.json")
data = JSON.parse(json) %>
<ul>
<% data.each do |d| %>
<li><a href="<%= d["email"] %>"><%= d["name"] %></a></li>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment