title: How to exclude a Java Object Property as part of JSON String?
body: <p>I have a Java POJO. Few properties are there along with a list&lt;>. While converting this object to JSON String, I want to exclude the list property,
  So what annotation to use for that?</p>
  
  <pre><code>public class StudentResultSummary {
      private String totMarks;
      private String avgMarks;
      private List&lt;StudentResult&gt; resultList = new ArrayList&lt;StudentResult&gt;();
  }
  </code></pre>
  
  <p>Convert to JSON:</p>
  
  <pre><code>StudentResultSummary resultSummary = new StudentResultSummary();
  Json json = new Json();
  policySummary = json.encode(resultSummary);
  </code></pre>
  
  <p>How can I make sure the field resultList is not included as part of the JSON response?</p>