title: Return null in ResponseEntity body (Spring Boot RESTful)
body: <p>I'm creating a RESTFul Web Service with the following service available:</p>
  
  <pre><code>@RequestMapping(value = "/test", produces = "application/json", method = RequestMethod.GET)
  public ResponseEntity&lt;List&lt;GenericModel&gt;&gt; returnEmpty() {
      List&lt;GenericModel&gt; genericModelList = new ArrayList&lt;&gt;();
  
      HttpHeaders headers = new HttpHeaders();
      headers.add("Content-Type", "application/json; charset=utf-8");
  
      return responseEntity = new ResponseEntity&lt;&gt;(genericModelList, headers, HttpStatus.OK);
  }
  </code></pre>
  
  <p>When the empty list returns, I'm getting the following response in browser:</p>
  
  <pre><code>[]
  </code></pre>
  
  <p>How can I do to receive in browser a "null" response instead of []? There's some way to tell Spring to render my list size 0 as "null" and not as []?</p>