title: How to find value of given key from json using JsonPath?
body: <p>I have searched a lot but no answer helped what I want.</p>
  
  <pre><code>[{
      "activity_id": 1,
      "created_date": 104,
      "note_id": 1
  }, {
      "activity_id": 2,
      "created_date": 101,
      "note_id": 2
  }, {
      "activity_id": 3,
      "created_date": 105,
      "note_id": 3
  }, {
      "activity_id": 4,
      "created_date": 102,
      "note_id": 4
  }, {
      "activity_id": 5,
      "created_date": 103,
      "note_id": 5
  }]
  
  DocumentContext dc =  JsonPath.parse(data);
  </code></pre>
  
  <p>I have tried to get key <code>d.read(key)</code> but it didn't work as it gives an array of values. </p>
  
  <p>How can I get an array of all values of a particular key? There is one thing to add more. I can get array of all values using <code>d.read("$..created_date")</code> 
  But I have to make generic functions so I will take the key name as a parameter and I have to find all values of that given key.</p>
  
  <p>For example: created_date: <code>[101, 102, 103..]</code></p>
  
  <p>I tried using Jackson also. I cannot use a library other than this.</p>
  
  <p>Any help will be appreciated.</p>