title: Get a particular key value from json in ruby
body: <pre><code>[ 
  "KEY1":{"SUB_KEY1" : "VALUE1","SUB_KEY2" : "VALUE2"},
  "KEY2":{"SUB_KEY1" : "VALUE1","SUB_KEY2" : "VALUE2"}
  ]
  </code></pre>
  
  <p>The above is my json object which is coming as a response. </p>
  
  <p>How do I get <code>SUB_KEY1</code> of <code>KEY1</code> and <code>SUB_KEY1</code> of <code>KEY2</code> in Ruby on Rails?</p>
  
  <p>Thank you.</p>