Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JSON output of list commands isn't an array #438

Closed
Assignees
gpocentek
Labels
@jgeorgeson

Description

@jgeorgeson

Each object is returned as distinct JSON object instead of all the objects being contained in an array. For example listing MRs

gitlab -o json project-merge-request list --state merged --project 'mygroup%2fmyproj'

Expected (ie what GitLab returns with equivalent curl request):

[  { "id":1234, "iid": 1, "project_id": 5, ...},  { "id":1235, "iid": 2, "project_id": 5, ...},  { "id":1236, "iid": 3, "project_id": 5, ...}]

Actual:

{ "id":1234, "iid": 1, "project_id": 5, ...}{ "id":1235, "iid": 2, "project_id": 5, ...}{ "id":1236, "iid": 3, "project_id": 5, ...}

This makes any existing scripting based on incompatible (iejq '.[]|select(...).id' has to be rewritten asjq 'select(...).id').

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp