title: How do I get the nested key element in a JSON object, using org.json?
body: <p>I need the keys <code>direct</code> and <code>242</code>.
  JSON structure:</p>
  
  <pre><code>   "advert": {
        "direct": {
           "url": "//direct.yandex.ru/",
           "params": {
              "add_type": "direct",
              "direct_page_id": 242
           }
        }
  </code></pre>
  
  <p>I use </p>
  
  <pre><code>jsonObj.getJSONObject("advert").getJSONObject("direct").getJSONObject("params").get("add_type")
  </code></pre>
  
  <p>but it doesn't seem optimal to me. Is there another way?</p>