How to parse JSON in Grails
Posted: Thu, Mar 24 01:49 PM (PDT)1. include JSON library
import grails.converters.JSON
2. use JSON library
def jsonString = '{"syntax":true,"email":"test@test.local","status":true,"domain":true}'
def json = JSON.parse(jsonString)
println json
All records are serializabled
happy end :-)
Tags: