title: Serialize POJO with Pure GWT
body: <p>What could be wrong with my code:</p>
  
  <pre><code>String serializeToJson(MyModel model) {
      // Retrieve the AutoBean controller
      AutoBean&lt;MyModel&gt; bean = AutoBeanUtils.getAutoBean(model);
      return AutoBeanCodex.encode(bean).getPayload();
  }
  </code></pre>
  
  <p>Even the model object is not null and the values/fields are set. The returned <code>String</code> is <code>null</code>.</p>