public static String json(SolrInputDocument doc){
  CharArr out=new CharArr();
  json(doc,out);
  return out.toString();
}

public static String json ( SolrInputDocument doc ) { CharArr out = new CharArr ( ) ; json ( doc , out ) ; return out . toString ( ) ; }
creates json from a solrinputdocument . doesn ' t currently handle boosts .
