From 6f78c7f9101f738fa24a1adbc1d4d51138af2a44 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 7 Mar 2016 23:14:28 +0000 Subject: [PATCH] Fix handling of bool when writing json --- src/json_ui.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/json_ui.cc b/src/json_ui.cc index ee90eaa0..c6189f96 100644 --- a/src/json_ui.cc +++ b/src/json_ui.cc @@ -29,6 +29,7 @@ template String to_json(const Vector& vec) { return to_json(ArrayView{vec}); } String to_json(int i) { return to_string(i); } +String to_json(bool b) { return b ? "true" : "false"; } String to_json(StringView str) { String res;