jeevesh

Grails

Marshall JSON and XML in your own way

Has there been instances when you wished to exclude certain properties while generating JSON object from a POJO and felt we had no control over it? Recently I was stuck with the same requirement and that’s what we are going to discuss in this blog post. Lets say, I have a “User” class as given below and which of course has a...

04-Jul-2014

Grails

Using Groovy’s HTTP Builder Library

In my Grails app project, I had a requirement to make an HTTP call from the server’s end. After a lot of searching, I found some old fashioned Java code to achieve what I was looking for. But I was looking for something more clean, concise and more importantly a groovier way of doing it. On searching a little bit more, I found the...

25-Jun-2014