title: How to serialize output from custom method to JSON using Jackson?
body: <p>I want to serialize output from specific method (The name of method doesn't start with <code>get</code> prefix).</p>
  
  <pre><code>class MyClass {
      // private fields with getters &amp; setters
  
      public String customMethod() {
          return "some specific output";
      }
  }
  </code></pre>
  
  <p><em>Example of JSON</em></p>
  
  <pre><code>{
      "fields-from-getter-methods": "values",
      "customMethod": "customMethod"
  }
  </code></pre>
  
  <p>Output from <code>customMethod()</code> is not serialized to JSON field. How can I achieve serialization of the output from <code>customMethod()</code> <strong>without adding of</strong> <code>get</code> <strong>prefix</strong>?</p>