Bug #1381
- #1381 Invalid JSON exported by Task 2.3.0-beta1 (thanks to Kosta H).
This commit is contained in:
@@ -797,13 +797,13 @@ std::string Task::composeJSON (bool decorate /*= false*/) const
|
||||
Task::const_iterator i;
|
||||
for (i = this->begin (); i != this->end (); ++i)
|
||||
{
|
||||
if (attributes_written)
|
||||
out << ",";
|
||||
|
||||
// Annotations are not written out here.
|
||||
if (i->first.substr (0, 11) == "annotation_")
|
||||
continue;
|
||||
|
||||
if (attributes_written)
|
||||
out << ",";
|
||||
|
||||
std::string type = Task::attributes[i->first];
|
||||
if (type == "")
|
||||
type = "string";
|
||||
|
||||
Reference in New Issue
Block a user