code: public String toJSON(List<JTSFeature> list) {
  		Object fcJSON = this.startFeatureCollection();
  		for (JTSFeature feature : list) {
  			Object f = this.startFeature();
  			Object p = this.startPoint();
  			try {
  				this.addXToPoint(feature.getGeometry().getGeometry()
  						.getCentroid().getX(), p);
  				this.addYToPoint(feature.getGeometry().getGeometry()
  						.getCentroid().getY(), p);
  			} catch (BaseException e) {
  				// TODO Auto-generated catch block
  				e.printStackTrace();
  			}
  
  			Iterator it = feature.getAttributes().keySet().iterator();
  			while (it.hasNext()) {
  				String key = it.next().toString();
  				this.addElementToFeature(feature.getAttribute(key).value, key,
  						f);
  			}
  
  			p = this.endPoint(p, null, null);
  			this.addPointToFeature(f, p);
  			this.endFeature(f);
  			this.addFeatureToCollection(fcJSON, f);
  		}
  
  		fcJSON = this.endFeatureCollection(fcJSON);
  
  		return this.featureCollectionAsJSON((org.json.JSONObject) fcJSON);
  	}
docs: Creates a GeoJSON from a List of {@link JTSFeature}
  
  @param list
  @return