Skip to content

How to pick last item of a JSON array? #5750

@theletterf

Description

@theletterf

Hi there. I'm trying to pick the last item in this array:

https://artifacts.elastic.co/releases/stack.json

The problem is that UpdateCLI uses Dasel v1 (if I'm not mistaken), which seems to lack support for things like releases[-1].version.

It seems something rather basic to me. How can I do this with UpdateCLI?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions