title: Rest WS partial JSON response
body: <p>I have tried many posts found on the net before writing this question.</p>
  
  <p>I'd like to have partial JSON response in my REST webservice. 
  Frist, I've tried to return a JSONArray but I got </p>
  
  <blockquote>
    <p>"No converter found for return value of type: class
    org.json.JSONArray"</p>
  </blockquote>
  
  <p>Then I tried to return a list of JSONObject, I get </p>
  
  <blockquote>
    <p>"com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No
    serializer found for class org.json.JSONObject and no properties
    discovered to create BeanSerializer (to avoid exception, disable
    SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain:
    java.util.ArrayList[0])"</p>
  </blockquote>
  
  <p>When I set SerializationFeature.FAIL_ON_EMPTY_BEANS to false in my application.properties, I get a list of empty JSONObjects like : {}</p>
  
  <p>I share my code in GitHub with you : <a href="https://github.com/AbderrahmenISSA/StockManagement/blob/master/src/main/java/com/stockmgt/controllers/v3/ProductControllerV3.java" rel="nofollow noreferrer">https://github.com/AbderrahmenISSA/StockManagement/blob/master/src/main/java/com/stockmgt/controllers/v3/ProductControllerV3.java</a></p>