title: How to search/find In JSON with java
body: <p>I have a below JSON string from the below i  want to find/search criteria in JSON String.</p>
  <ol>
  <li>To find the Number of keys present.</li>
  <li>To get the values of given key(if we have array)</li>
  </ol>
  <pre><code>    {
      &quot;store&quot;: {
          &quot;book&quot;: [
              {
                  &quot;category&quot;: &quot;reference&quot;,
                  &quot;author&quot;: &quot;Nigel Rees&quot;,
                  &quot;title&quot;: &quot;Sayings of the Century&quot;,
                  &quot;price&quot;: 8.95
              },
              {
                  &quot;category&quot;: &quot;fiction&quot;,
                  &quot;author&quot;: &quot;Evelyn Waugh&quot;,
                  &quot;title&quot;: &quot;Sword of Honour&quot;,
                  &quot;price&quot;: 12.99
              },
              {
                  &quot;category&quot;: &quot;fiction&quot;,
                  &quot;author&quot;: &quot;Herman Melville&quot;,
                  &quot;title&quot;: &quot;Moby Dick&quot;,
                  &quot;isbn&quot;: &quot;0-553-21311-3&quot;,
                  &quot;price&quot;: 8.99
              },
              {
                  &quot;category&quot;: &quot;fiction&quot;,
                  &quot;author&quot;: &quot;J. R. R. Tolkien&quot;,
                  &quot;title&quot;: &quot;The Lord of the Rings&quot;,
                  &quot;isbn&quot;: &quot;0-395-19395-8&quot;,
                  &quot;price&quot;: 22.99
              }
          ],
          &quot;bicycle&quot;: {
              &quot;color&quot;: &quot;red&quot;,
              &quot;price&quot;: 19.95
          }
      },
       &quot;expensive&quot;: 10
      }
  </code></pre>
  <p>I am looking a solution like Groovy GPath Syntax</p>
  <ul>
  <li>store.book               - size of this array.</li>
  <li>store.book[*].category   - how may times the key present in the array.</li>
  <li>store.bicycle            - if it found it has to return true value</li>
  </ul>