title: Parsing JSON in Ruby (like XPATH)
body: <p>I have a JSON document returned from a query to the Google Books API, e.g:</p>
  
  <blockquote>
    <p>{
     "items": [
      {
       "volumeInfo": {
        "industryIdentifiers": [
         {
          "type": "OTHER",
          "identifier": "OCLC:841804665"
         }
        ]
       }
      },
      {
       "volumeInfo": {
        "industryIdentifiers": [
         {
          "type": "ISBN_10",
          "identifier": "156898118X"...</p>
  </blockquote>
  
  <p>I need the ISBN number (type: ISBN_10 or ISBN_13) and I've written a simple loop that traverses the parsed JSON (<code>parsed = json.parse(my_uri_response)</code>).  In this loop, I have a <code>next if k['type'] = "OTHER"</code> which sets "type" to "OTHER".  </p>
  
  <p>How do I best extract just one ISBN number from my JSON example?  Not all of them, just one.</p>
  
  <p>Something like XPath search would be helpful.</p>