Skip to content

Commit

Permalink
force appended type to be bool
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Apr 25, 2015
1 parent 073fd99 commit 33edb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/core/include/core/json/Json.hpp
Expand Up @@ -161,7 +161,7 @@ inline json::Array toJsonArray(const std::vector<bool>& val)
{
json::Array results;
for (size_t i=0; i<val.size(); i++)
results.push_back(val[i]);
results.push_back(val[i] ? true : false);
return results;
}

Expand Down

0 comments on commit 33edb12

Please sign in to comment.