Patch 2:
Fixed same for array of bool
Change-Id: Ib732ac8aff643cc579f57aafee27dee39b2f33f7
{
std::ostringstream json;
- json << "\"[";
+ json << "[";
if(v.size() != 0)
{
std::copy(v.begin(), v.end() - 1, std::ostream_iterator<T>(json, ","));
json << v.back();
}
- json << "]\"";
+ json << "]";
return json.str();
}
std::ostringstream json;
int first = 1;
- json << "\"[";
+ json << "[";
for(auto b: bools)
{
if(first)
b ? json << ",true" : json << ",false";
}
}
- json << "]\"";
+ json << "]";
return json.str();
}