How can i convert the string with special characters into json object
<p>Hi i am trying to parse the string and convert it in to <code>JSONObject</code>.But it is not converted and giving the error like </p>

<pre><code>"07-28 11:36:47.674: WARN/System.err(6050): org.json.JSONException: Unterminated string at character 3136 of {"data":[{""...."(there is my data)
</code></pre>

<p>First i thought there is some special characters like <code>~,@,%,&amp;</code> and replace the characters with <code>" "</code> but there is no result and giving the same error.</p>

<p>And i modified the web services data by encoding with <code>UTF-8</code> format. and i used the code to get decode the <code>UTF-8</code> formatted data in my application.here is my code:</p>

<pre><code>                           HttpParams params = new BasicHttpParams();
               HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
               HttpProtocolParams.setContentCharset(params, "UTF-8");
           params.setBooleanParameter("http.protocol.expect-continue",false);
               HttpClient httpclient = new DefaultHttpClient(params);
               HttpGet httpget =new htpGet("http://www.mylink.com"+todaydate);


                   try
                   {
                        HttpResponse response = httpclient.execute(httpget);
                        HttpEntity entity = response.getEntity();
                        jsonText = EntityUtils.toString(entity, HTTP.UTF_8);
                        Log.d("TEST", jsonText);   /this is the result string

                              }
                   catch (Exception e)
                   {
                   }

 JSONObject jObj = new JSONObject(jsonText.toString()); 
</code></pre>

<p>Here i cannot convert the string(<code>jsonText</code>) into <code>json object(jobj)</code>.But in <strong>logcat</strong> it is displaying the string <code>jsonText</code> perfectly. Is there any suggestion to get the data as json object.</p>

<p>I need to use the <code>Json object</code> in my application.</p>
