Skip to main content

Groovy Weather: POGOs, Gson, and Open Weather by Ken Kousen of Making Java Groovy + 45% savings!

Posted by manning_pubs on January 7, 2014 at 4:39 AM PST

Groovy Weather: POGOs, Gson, and Open Weather" by Ken Kousen of Making Java Groovy is 45% off with promotional code kousenjn at

The Open Weather Map web site provides weather information as a RESTful web service in JSON form. In this blog post, I show how to access the site using Groovy and convert the results into Groovy classes using Gson, the JSON parser from Google. The code includes Spock tests and a Gradle build file.


Groovy is one of the family of non-Java languages that compile to bytecodes that run on the JVM. Groovy, Scala, and Clojure are all rising in popularity these days, along with hybrid languages like JRuby and Jython. Groovy is by far the closest to Java in that set, making it easy for Java developers to learn and use. Groovy is unusual in that it is not design to replace Java; virtually any Groovy project of any significant size includes Java code in it as well.

Here is a brief list of Groovy features, most of which I

Related Topics >>