title: Why JSON object printed as String in JSP?
body: <p>In my Servlet a JSONObject is created with the value:</p>
  
  <pre><code>{'alerts':true}
  </code></pre>
  
  <p>When I am trying to print its value on JSP page using , it is printing the JSON object as String . It is printed as </p>
  
  <pre><code> "{'alerts':true}"
  </code></pre>
  
  <p>How do I print in JSON format rather than String?</p>
  
  <p>In Servlet:</p>
  
  <pre><code>public JSONObject getAudioAlerts() {
      JSONObject val = new JSONObject("{'alerts':true}");
       return val;
  }
  </code></pre>
  
  <p>In JSP:</p>
  
  <pre><code>&lt;br&gt;&lt;br&gt;&lt;json:property name="audioAlerts" value="${myBean.audioAlerts"}" /&gt;;
      &lt;br&gt; Expected output: {'alerts':true}
      &lt;br&gt;Acutal output: "{'alerts':true}"
  </code></pre>