title: Jython: Parse JSON object to get value (object has array)
body: <p>I have JavaScript that parses a <a href="https://i.stack.imgur.com/xmJXS.png" rel="nofollow noreferrer">JSON object</a> (object has array) and returns the value from the <code>ZONE</code> field. </p>
  
  <pre><code>var obj = JSON.parse(json_text);
  parsed_val = obj.features[0].attributes.ZONE
  </code></pre>
  
  <p>I would like to <strong>convert the JavaScript code</strong> to <strong>Jython</strong>.</p>
  
  <p>This is what I've tried:</p>
  
  <pre><code>from com.ibm.json.java import JSONObject
  
  obj = JSONObject.parse(json_text)
  parsed_val = obj.get('features.attributes.ZONE'); 
  </code></pre>
  
  <p>The Jython compiles, but it doesn't return a valid value (it returns <code>None</code>). I think this is because I haven't referenced the array properly.</p>
  
  <p>How can I <strong>parse the JSON object/array</strong> using Jython to get the ZONE value?</p>
  
  <p><em>(Jython version is 2.7.0. However, I can't seem to use Python's JSON library (normally included in Jython)).</em></p>