json: Fix search result with no matches to be a valid json object.