title: How can I only return some fields in the JSON object?
body: <p>I currently have a function that returns a JSON version of an object:</p>
  
  <pre><code>public class Debate extends Controller
  {
      public static Result viewArgument(Long id)
      {
          ...
          return ok(Json.toJson(Argument.get(id)));
      }
  }
  </code></pre>
  
  <p>This <code>Argument</code> object has some confidential information that should not be exposed to the client, however. How can I select only the fields <code>id</code> and <code>summary</code> to be returned in the resulting JSON object?</p>