title: Serializing an empty class (with no field)
body: <p>I have the following class:</p>
  
  <pre><code>class Foo {
      @JsonCreator
      public Foo() 
      {
      }
  }
  </code></pre>
  
  <p>And I get the following exception:</p>
  
  <blockquote>
    <p>com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class Foo and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )</p>
  </blockquote>
  
  <p>It cannot be serialized in this way. And I don't want to ignore the value, I just want to see <code>{}</code> output as JSON.
  Any help will be appreciated. </p>