title: Using solrj to retrieve a SolrDocument in json format
body: <p>How do I specify the SolrQuery to return the data in json format?
  Heres the code I am using to query data: Once I get the SolrDocument how can I convert it to a json Object/string?</p>
  
  <pre><code> SolrQuery sQuery = new SolrQuery();
   sQuery.setQuery("name:test");
   QueryResponse resp = server.query(sQuery);
   SolrDocumentList docs = resp.getResults();
  </code></pre>