[notmuch] [PATCH] Produce valid JSON output even if mail body is empty

2010-03-14 Thread Michal Sojka
Mails with empty body produced the following output: "body": [{"id": 1, "content-type": "text/plain", "content": (null)}] The (null) is not valid JSON syntax. This patch changes the output to: "body": [{"id": 1, "content-type": "text/plain", "content": ""}] Signed-off-by: Michal Sojka ---

[notmuch] [PATCH] Produce valid JSON output even if mail body is empty

2010-03-14 Thread James Westby
On Sun, 14 Mar 2010 19:19:11 +0100, Michal Sojka wrote: > Mails with empty body produced the following output: > "body": [{"id": 1, "content-type": "text/plain", "content": (null)}] > The (null) is not valid JSON syntax. Is this just something that can happen with the body? I've see (null) in