title: JSON files fields intersection in JAVA
body: <p>I would like to ask if there are any libraries that allows me to make the intersection of two JSON files at their fields structure? For example, i have incoming json file like this:</p>
  
  <pre><code>{
     "name": "John",
     "surname": "Smith",
     "age": 15,
     "address": {
         "street": "Some street",
         "city": "some city",
         "country": "some country",
         "height": 500
     },
     "company": { 
         "name": "Company name",
         "fullname": "Company full name",
         "id": 451,
     },
     "personid": 5412457
  }
  </code></pre>
  
  <p>And now i would like to have another json file (template file) like this:</p>
  
  <pre><code>{
     "name": "",
     "surname": "",
     "address": {
         "street": "",
         "city": "",
     },
  }
  </code></pre>
  
  <p><strong>And now i want to cut first json file based on the second one</strong>. Is there some simple way how to do this? Thanks</p>