Guest User

Untitled

a guest
Dec 11th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. require 'rubygems'
  2. require 'yajl'
  3.  
  4. json = File.new('map_data.json', 'r')
  5.  
  6. parser = Yajl::Parser.new
  7.  
  8. json_data = parser.parse(json)
  9.  
  10. puts json_data['metros'][0]['code']
Add Comment
Please, Sign In to add comment