Skip to content

Bug: Embedded jq parser does not handle empty arrays as expected #456

@rspurgeon

Description

@rspurgeon

Take the following example commands and the sample command data passed to jq for comparison. The identity expression . should echo an empty array.

└─❯❯ ./kongctl get apis --output json
[]

└─❯❯ ./kongctl get apis --output json --jq '.'
null

└─❯❯ echo "[]" | jq '.'
[]

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions