Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Geoserver 2.2.4 installed - which allows GetFeatureInfo to be returned as json

If I make the following call


I get a exception response of

Invalid format 'application/json', supported formats are [text/plain, application/vnd.ogc.gml, application/vnd.ogc.gml/3.1.1, text/html]

I have checked getcapabilities for this service and only the following are available


So is there any extra config I need to do to Geoserver to get it to output in json for GetFeatureInfo?

share|improve this question
Do you use a template for GetFeaturesInfo?… – Mapperz Feb 19 '13 at 16:10
Are you sure it is supported in 2.2.4? The following bug report says that it is fixed in 2.2.5? ( – Devdatta Tengshe Feb 19 '13 at 16:17
I think Devdatta might be right. I was never able to get a JSON response running 2.2.4 – Taylor H. Feb 19 '13 at 16:22
@Devdatta Is 2.2.5 available? – Peter Campbell Feb 19 '13 at 16:22
@Mapperz I am aware you can use templates, I wanted to be able to request json format – Peter Campbell Feb 19 '13 at 16:23
up vote 1 down vote accepted

Seems to be that despite documentation saying the the JSON output for GetFeatureInfo is available in 2.2.4, it will not be available until a future version.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.