From: Carl Worth Date: Sun, 30 Jan 2011 19:26:04 +0000 (+1000) Subject: json: Fix search result with no matches to be a valid json object. X-Git-Tag: debian/0.6_254~185 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=0b1ddc5f6652bde99d63d9d553777b3d926694cf;hp=0b1ddc5f6652bde99d63d9d553777b3d926694cf json: Fix search result with no matches to be a valid json object. In the original json code, search matching nothing would return a valid, empty json array (that is, "[]"). I broke this in commit 6dcb7592e32ed5140ea0c0357ce78d6a37af6066 when adding support for --output=threads|messages|tags. This time, while fixing the bug also add a test to the test suite to help avoid future regressions. ---