json icon indicating copy to clipboard operation
json copied to clipboard

grouping of arrays (-g) fails on empty arrays: `[]`

Open trentm opened this issue 11 years ago • 0 comments

$ cat arrays.chunks
[
    {"one": 1}
]
[
    {"two": 2}
]
[]
[]

$ json -f arrays.chunks -g
json: error: input is not JSON: Syntax error at line 4, column 1:
        [
        ^
[
    {"one": 1}
]
[
    {"two": 2}
]
[]
[]

would be nice to support this.

trentm avatar Jun 04 '13 22:06 trentm