Skip to content

Implement "optional object identifier index" filter #22

@slinkardbrandon

Description

@slinkardbrandon

One of the missing features today is the "optional object identifier index" that jq provides out of the box.

Below are examples using jq today but tq needs the equivelent support for TOML files.

{"foo": 42, "bar": "less interesting data"} | jq '.foo?' // 42
{"notfoo": true, "alsonotfoo": false} | jq '.foo?' // null

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions