title: convert a string to json format in java
body: <p>I want to extract data from different blogs. I have done it using article extractor but now I have to convert it into json format for storing into MongoDB. My program is returning entire article as string like this:</p>
  
  <pre><code>String news=ArticleExtractor.INSTANCE.getText(doc);
  </code></pre>
  
  <p>How can I convert it into json format?</p>
  
  <pre><code>     URL url;
         url = new URL("http://blogs.timesofindia.indiatimes.com/mellowdrama/entry/india-needs-a-law-against-community-crime");
  InputSource is = HTMLFetcher.fetch(url).toInputSource();        
         BoilerpipeSAXInput in = new BoilerpipeSAXInput(is);
       TextDocument doc = in.getTextDocument();        
       news=ArticleExtractor.INSTANCE.getText(doc);
       System.out.println(news);
       JSONObject jsonObj = new JSONObject(news);
  </code></pre>
  
  <p>this last line shows error... the error is</p>
  
  <pre><code>    Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
  The constructor JSONObject(String) is undefined
  
  at Article_ext.main(Article_ext.java:39)
  </code></pre>