title: How to find last element in Array list using jsonpath expression?
body: <p>I have json string like below</p>
  
  <pre><code>[
      {
          "topic": "inputTopic",
          "key": "0",
          "message": "test",
          "partition": 0,
          "offset": 0
      },
      {
          "topic": "inputTopic",
          "key": "0",
          "message": "test",
          "partition": 0,
          "offset": 1
      },
      {
          "topic": "inputTopic",
          "key": "0",
          "message": "test",
          "partition": 0,
          "offset": 2
      },
      {
          "topic": "inputTopic",
          "key": "0",
          "message": "test",
          "partition": 0,
          "offset": 3
      },
      {
          "topic": "inputTopic",
          "key": "0",
          "message": "test",
          "partition": 0,
          "offset": 4
      },
      {
          "topic": "inputTopic",
          "key": "0",
          "message": "test",
          "partition": 0,
          "offset": 5
      },
      {
          "topic": "inputTopic",
          "key": "0",
          "message": "test",
          "partition": 0,
          "offset": 6
      },
      {
          "topic": "inputTopic",
          "key": "0",
          "message": "Hi Test",
          "partition": 0,
          "offset": 7
      },
      {
          "topic": "inputTopic",
          "key": "0",
          "message": "Hi Test",
          "partition": 0,
          "offset": 8
      },
      {
          "topic": "inputTopic",
          "key": "0",
          "message": "Hi Test",
          "partition": 0,
          "offset": 9
      }
  ]
  </code></pre>
  
  <p>How can I get last item using jsonpath expression?</p>
  
  <pre><code> {
      "topic": "inputTopic",
      "key": "0",
      "message": "Hi Test",
      "partition": 0,
      "offset": 9
  }
  </code></pre>