I am developing a java web application with MongoDB. In this app, I'm querying a Monogo database from a Java servlet. I am just confused whether to convert the query result to Json or a HashMap and send it to JSP or is there any other way to achieve this, and in the jsp file I can get the HashMap data and send it to the javascript in the same file.(I need to use the data in javascript)I am developing a java web application with Mon