title: Sending JSONP vs. JSON data?
body: <p>I am making a web service that needs to return data in JSONP format. I am using the JSON taglib for JSP, and I thought all that had to be added were parenthesis, but I cannot find a good resource which verifies this.</p>
  
  <p>For example, ever web service function returns using this function:</p>
  
  <pre><code>private static String getJSONPObject(String s) throws JSONException {
      return "(" + new JSONObject(s) + ")";
  }
  </code></pre>
  
  <p>Is this correct?</p>
  
  <p>Thanks!</p>