Grails

Create JSON object Using Grails converter (Only selective fields from lists of objects)

This post might help you if you want to get JSON (JavaScript Object Notation) Object on browser. Grails framework provides you very efficient way to achieve this. For this you need to import grails JSON convertor in your code. import grails.converters.JSON Below is the code snapshot which converts java based lists of Objects to...

by Salil
Tag: JSON
13-May-2010

Grails

How to use $.getJSON() method of jQuery with grails?

How to use $.getJSON() method of jQuery with grails? Retriving a JSON string from Grails is very easy. You have to just write the following in your controller's action Let me explain you with an example of populating a HTML table using JSON response: In this example, we have table with columns - name,address and gender. We want the...

by Chandan Luthra
Tag: JSON
02-Mar-2009