CoordinateArraySequence coords = new CoordinateArraySequence(new Coordinate[] {
new Coordinate(12.0, 34.23), new Coordinate(12.000, 54.555), new Coordinate(7, 8),
new Coordinate(12.0, 34.23)});
LinearRing ring = new LinearRing(coords, factory);
Polygon p = new Polygon(ring, new LinearRing[] {}, factory);
MultiPolygon m = new MultiPolygon(new Polygon[] {p}, factory);
JSONObject jo = (JSONObject) ser.marshall(null, m);
assertEquals("MultiPolygon", jo.get("type").toString());
assertEquals("31300", jo.get("srid").toString());
assertEquals("2", jo.get("precision").toString());
JSONArray polygons = jo.getJSONArray("polygons");