title: Deserialize a JSON object with support for embedded associations
body: <p>Is there an easy way to deserialize a JSON string to a domain class with support of embedded association; belongsTo and hasMany</p>
  
  <pre><code>{
    name: "Customer",
    contact: {
      name: "Contact"
    }
  } 
  
  class Customer {
    name 
    Contact contact
  }
  
  class Contact {
    String name
    static belongsTo = [customer:Customer]
  }
  </code></pre>
  
  <p>in my controller I would like to do the following</p>
  
  <pre><code>def save() {
     def customer = new Customer(request.JSON)
     customer.save();
  }
  </code></pre>
  
  <p>Now i'm forced to do </p>
  
  <pre><code>def save() {
     def contact = new Contact(request.JSON.contact);
     def customer = new Customer(request.JSON);
     customer.contact = contact;
     customer.save();
  }
  </code></pre>