This is the beginning of a GeoJSON parser and builder. The parser takes GeoJSON and parses it into Geometry and Feature objects. The builder takes Java geometry objects and writes out their GeoJSON string representations. GeoJSONBuilder was written by Chris Holmes and has been brought over from its package in GeoServer (org.geoserver.wfs.response.GeoJSONBuilder).
GeoJSONParser will correctly parse basic geometry objects (Point, LineString, Polygon, and their multi versions), as well as GeometryCollections. It will also parse features and feature collections, however, non-required attributes in the GeoJSON object won't be converted. The crs and bbox attributes are also not yet implemented.
This uses the json-lib library: http://json-lib.sourceforge.net/