title: Getting Error : java.lang.String cannot be cast to org.json.JSONObject
body: <p>I get the following error when running the code.</p>
  
  <blockquote>
    <p>java.lang.String cannot be cast to org.json.JSONObject</p>
  </blockquote>
  
  <pre><code>JSONObject data = ((JSONObject) response.get("data"));
  String setting_name =  data.getString("setting_name");
  String setting_value = data.getString("setting_value");
  </code></pre>