Fix handling of bool when writing json

This commit is contained in:
Maxime Coste 2016-03-07 23:14:28 +00:00
parent 6c8f8fe691
commit 6f78c7f910

View File

@ -29,6 +29,7 @@ template<typename T, MemoryDomain D>
String to_json(const Vector<T, D>& vec) { return to_json(ArrayView<const T>{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;