I have this simple domain class:
class Settings {
static constraints = {
uid(nullable: false, unique: true)
person()
}
String uid
Map person
}
and a web UI that update the data using a json request:
{"uid":1234 , person:{"first_name" : "jhon" , "last_name" : "doe"}}
in the controller code:
def json = request.JSON;
def s = new Settings(json);
it seems that s.uid is being set however the s.person Map remains empty. What am I missing?