title: Keep part of the JSON with jsonpath
body: <p>I'd like to keep only a some part of the JSON by using jsonpath.<br>
  Let's assume I have to the following JSON:</p>
  
  <pre><code>{  "loginId":"bootstrap",
     "isTechnicalUser":false,
     "name":{  "+
        "title":"Mr.",
        "firstName":"Boot",
        "familyName":"Strap""+
     },
  }
  </code></pre>
  
  <p>I want a JSON containing only $.loginId and $.name.firstName.</p>
  
  <p>How can I do that with jsonpath? Or achieve that with other framework?</p>
  
  <p>Thanks!</p>
  
  <p>////////////// UPDATE //////////////<br>
  Forgot to mention that the configuration has to be dynamic done by the user so I cannot hard code anything (i.e. using Transient or similar)</p>
  
  <p>////////////// UPDATE 2 //////////////<br>
  Perhaps it could work that first delete the nodes with <code>jsonpath</code> and find the differences between this map and the original one. However I cannot find a deep map compare tool. I checked guava's but it is not good enough.</p>