title: Accessing JSON objects in Ruby
body: <p>I have a json file that looks kind of like this:</p>
  
  <pre><code>{
    "Results": [
      {
        "Lookup": null,
        "Result": {
          "Paths": [
            {
              "Domain": "VALUE1.LTD",
              "Url": "",
              "Text1": "",
              "Modules": [
                {
                  "Name": "VALUE",
                  "Tag": "VALUE",
                  "FirstDetected": "1111111111",
                  "LastDetected": "11111111111"
                },
                {
                  "Name": "VALUE",
                  "Tag": "VALUE",
                  "FirstDetected": "111111111111",
                  "LastDetected": "11111111111111"
                }
              ]
            }
          ]
        }
      }
    ]
  }
  </code></pre>
  
  <p>How do I print only the domain and access only the module.names in ruby and print the module.names to the console:</p>
  
  <pre><code>#!/usr/bin/ruby
  require 'rubygems'
  require 'json'
  require 'pp'
  
  json = File.read('input.json')
  </code></pre>
  
  <p>and does any one know of any good resources for ruby and json for someone new to it?</p>