I tried to find a cool guide on how JSON works with Grails, the documentation on the official website - I have very little information.
What articles did you use to understand how this works?
Thanks.
I think this documentation is enough. You install the converter plugin and then render the response object as json:
def list = { def listResult = [ total: Book.count(), items: Book.list(params)] render listResult as JSON }
It depends on what you understand, understanding how it works. If you really want to understand how to do this, it is best to get the source code from Grails and go through it. If you just need to understand how to use it, the documentation is more than sufficient. What exactly are the problems with?
Documentation: http://grails.org/doc/latest/guide/6.%20The%20Web%20Layer.html#6.1.7 XML and JSON Responses