title: Compare JSON with nested arrays and jsons (Array order does not matter)
body: <p>Hello I'm trying to compare two json in java, each key can contain a json object or array of json objects, and each one of them can also be an array or json.</p>
  
  <p>Here is an example of the Json:</p>
  
  <pre><code>{
    "id": "123123asd123",
    "attributes": [
        {
           "name": "apps",
           "values": [
               "111",
               "222"
               ]
        },
        {
           "name": "city",
           "values": [
                "NY"
                ]
        }
      ]
  }
  </code></pre>
  
  <p>I want to be able to get two json from this kind and compare them without caring about the order of the arrays.
  As you can see the key 'attributes is an array of json so if i have another json like the one up here and the element in the array with key city is before apps i want the test to pass.
  aswell of the numbers inside the apps values i dont care if it is 111,222 or 222,111</p>
  
  <p>If anyone know any external java lib that is doing that ill be happy hear.
  Or any idea how to implement this compare manually? or even an idea that will this kind of json and reorganize it so it will be easy to compare share that with me.</p>