title: REST api want to receive the dynamic data
body: <p>I am a new guy to Java and to the REST API .I would like to know the way of receiving the dynamic data from client by REST api in java and process it.</p>
  
  <p><strong>For example,</strong></p>
  
  <p>Some times client will send the data like below,</p>
  
  <pre><code>     {
  
      "User" : "XXXX",
  
      "Role" : "ZZZZ",
  
      "Product" : 
  
      {
      "Name" : "yyyy",
  
      "Valid to" : "04/4/2025",
  
      "Licensed version" : "jjjjj",
  
      },
  
      }
  </code></pre>
  
  <p>In the next contract, client may send like below,</p>
  
  <pre><code>{
  
  "User" : "XXXX",
  
  "Role" : "ZZZZ",
  
  "Product" : 
  
  {
  "Name" : "yyyy",
  
  "Expiry Date" : "04/4/2025",
  
  "Activation Date" : "jjjjj",
  
  },
  }
  </code></pre>
  
  <p>By referring the both examples, "Product" section having  different data .For additional information may Client can send the additional data in this "Product" section. Would it be possible to make my REST Api to receive this type of dynamic data?.</p>
  
  <p>If possible please let me know how can my REST api will able to receive this type of dynamic data and process it?.</p>
  
  <p>Thanks </p>