title: How to map values of a json object without knowing about the format?
body: <p>I have the following programming requirement:</p>
  
  <p>problem:
  Given two JSONs A and B, if the fields x,y,z in JSON A match the fields i,o,p in B return true else false.</p>
  
  <p>approach:
  I want to stay away from building a matching engine that depends on the json's format. I don't want to format the jsons by using pojos and then do object matching. My approach is to convert all the jsons into a hash map and then specify the location of the fields by using a string:</p>
  
  <p>Example:
  money -> a,b,c</p>
  
  <pre><code>{
    a :
     {
        b : {
           c: {
             money : "100"
           }
         }
      }
  }
  </code></pre>
  
  <p>However this approach seems to be a bit tricky as we have to take into account collections. I have to cover all of the edge cases. Is there any spring library or java tool I can use to fulfill this purpose?.</p>