title: REST API consume dynamic JSON
body: <p>I have a REST API that will have a service that will receive a json that can change dynamically.</p>
  
  <pre><code>@POST
  @Path("/my/service")
  public Response saveData(@ApiParam GenericObject request);
  </code></pre>
  
  <p>I need to capture all the json content to store in the database. How can I do it? How I can build GenericObject to not throw a parser exception and capture all fields and child objects?</p>
  
  <p>One dummy example of Json could be</p>
  
  <pre><code>{
  "name":"John",
  "age":30,
  "cars":[ ... ] //Dynamic content
  }
  </code></pre>
  
  <p>Thanks</p>