"zbx_jsonpath_next" function is able to work with arrays and it's possible to specify them in the path, but it's not documented as it should.
Moreover, current documentation for "JSON Path" is not clear an misleads in this regard.
Working examples (both) for zabbix:
where ["2"] or .2. is an object key name, and  is an order of object in array.
Working examples from command line:
JSON used for tests above (real device, data a bit shortened):
Suggested changes for the doc page:
All examples, containing  should explain that it's an array index, not object key name.
It will be better to not use such  in first example. It should be short "$.document.item.value".
And add one more example:
If object name is a digit and bracket notation is used, it must be quoted. If dot notation is used, it must be specified as just object name: