I'm trying as follows, System.out.println(ArticleExtractor.INSTANCE.getText(url)); It gives me a plain text output. but i want a output as JSON format. Please guide me, to change the output format in source code.