lastIndexOf potential bug

Hi Dear Camunders,

I am not the best java coder in the world but recently I have come to the following behavior which is for me bit weird. Can you please confirm that this is bug?

Thank you

LastIndexOf is searching for the last Index at which a certain value appears, so your tests show exactly the desired behavior…

https://javadoc.io/doc/org.camunda.spin/camunda-spin-core/1.7.2/org/camunda/spin/json/SpinJsonNode.html#lastIndexOf(java.lang.Object)

If you want to access the value at a certain index you should be able to achieve this with something like this: .elements().get(index).value()

@KeyKon thx. My bad I was just looking for a way how to know easily size of an array.

Ok, this should be possible with .elements().size()