Maven:
XML
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-geojson</artifactId>
<version>${geotools.version}</version>
</dependency>
Here is a small example from the test cases:
java
GeometryJSON gjson = new GeometryJSON();
// be sure to strip whitespace
String json = "{'type':'Point','coordinates':[100.1,0.1]}";
Reader reader = new StringReader(json);
Point p = gjson.readPoint( reader );
Working with Features is also supported:
java
FeatureJSON fjson = new FeatureJSON();
StringWriter writer = new StringWriter();
fjson.writeFeature(feature(1), writer);
String json = writer.toString();