Grails Command Object: How to load request.JSON into it?
Question : is there a way to do automatic command object binding with request.JSON data? Given this simple Command object in my grails controller: class ProfileCommand{ int id String companyName static constraints = { companyName blank: false id nullable: false } @Override public String toString() { return "ProfileCommand{id=$id, companyName='$companyName'}"; } } and my controller method signature of: def update(ProfileCommand command) {...} How can I get request.JSON data into my command object? So far, the only way I've been able to do it is to create the command object manually within the