Public bug reported: It appears that when the filter passed to `grib_dump -j` produces no results, the output is just: `]}` (with a blank line preceding it.
... rather than what it should be, which I think is `{ "messages" : [] }` Looks like it is just missing the opening `{ "messages" : [` Easy to reproduce... just pass a filter than would never produce any results... grib_dump -j -w parameterCategory=909,parameterNumber=321 gfs.grib2 ]} ** Affects: eccodes (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1902426 Title: Invalid JSON returned by grib_dump when filter produces no results To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/eccodes/+bug/1902426/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs