title: Cannot resolve symbol toJSONObject
body: <p>So I was trying to convert an XML String to JSON, but I keep getting cannot resolve symbol toJSONObject</p>
  
  <pre><code>JSONObject job = new XML.toJSONObject(d2.toString());
  </code></pre>
  
  <p>I included the dependency,</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;org.json&lt;/groupId&gt;
          &lt;artifactId&gt;json&lt;/artifactId&gt;
          &lt;version&gt;20171018&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>How to solve this problem?</p>