GeoJSON output for GeoServer

I’ve just uploaded a new GeoJSON plug-in for GeoServer, enabling JSON output for any WFS request.  The plug-in is definitely compatible with all versions of GeoServer 1.5.x, and will likely work with 1.4.x as well.  This was a breeze to write, which is a testament to the nice design of GeoServer and to the strength of the Java open source world.  I made use of json-lib, and extended the JSONBuilder to handle geometries.  Then hooked that up as an output format plugin for WFS, and we can now plug it in to existing GeoServer installations.  Please give us feedback on how it’s working, and if we get a positive response we’ll likely include it in the default release.

The plug-in can be downloaded from sourceforge, and there’s a bit of a write-up in the GeoServer documentation.  For more information on GeoJSON, see  The spec is not yet finalized as 1.0, but is a first release candidate.  So hopefully it will hold up, but if not we’ll definitely stay up to date with the latest versions.


  1. Posted July 9, 2007 at 4:39 pm | Permalink

    Oh, and if you want to test the output without downloading and installing GeoServer, you can try it out at

    A sample request is

  2. Posted March 4, 2009 at 12:22 pm | Permalink

    What is the status of this “plug-in”? I have been using it and GeoServer to mashup our data with GoogleMaps. I am hoping to find out if there is any continuing develoment of it.

  3. Posted March 4, 2009 at 12:28 pm | Permalink

    I believe it should be fully integrated in GeoServer. Try out the latest stable release, json should be listed in the capabilities document as an output format that you can call. And for 1.7.3+ you can even put a callback parameter, see

  4. Imran
    Posted October 2, 2009 at 5:59 am | Permalink

    I am following the instructions on this page

    it didnt work

Download GeoServer