WktWriter wktWriter = new WktWriter();
StringWriter sw = new StringWriter();
wktWriter.write(geom, sw);
String wkt = sw.toString();
BoundingBox bbox = geom.getBoundingBox();
JSONObject geomObj = getJson();
geomObj.put("wkt", wkt);
JSONArray bboxArray = new JSONArray();
bboxArray.put(bbox.getMinX());
bboxArray.put(bbox.getMinY());
bboxArray.put(bbox.getMaxX());
bboxArray.put(bbox.getMaxY());
geomObj.put("bbox", bboxArray);
}