title: Getting JSON object values by name
body: <p>I have a valid JSON object like this:</p>
  
  <pre><code>{
      "reasons": {
          "options": [
              {
                  "value": "",
                  "label": "Choose a reason",
                  "selected": true,
                  "requiresValidation": false
              },
              {
                  "value": "small",
                  "label": "Too little",
                  "selected": false,
                  "requiresValidation": false
              },
              {
                  "value": "big",
                  "label": "Too big",
                  "selected": false,
                  "requiresValidation": false
              },
              {
                  "value": "unsuitable",
                  "label": "I don't like it",
                  "selected": false,
                  "requiresValidation": true
              },
              {
                  "value": "other",
                  "label": "Other",
                  "selected": false,
                  "requiresValidation": true
              }
          ]
      }
  }
  </code></pre>
  
  <p>and I have a variable which stores one value (e.g. <code>unsuitable</code>) of an option available in <code>options</code>.
  How can I retrieve the value of <code>requiresValidation</code> field for the value stored in the variable without having to loop through all of the objects values inside <code>options</code>? </p>
  
  <p>For instance, if the var content is <code>other</code> I'd like to access to <code>requireValidation</code> field of the object whose value is <code>other</code> (which is <code>true</code>). Is it possible?
  Thank you.</p>