- #1381 Invalid JSON exported by Task 2.3.0-beta1 (thanks to Kosta H).
This commit is contained in:
Paul Beckingham 2013-11-01 17:35:35 -04:00
parent 2eac71801a
commit 8ad29bded7
3 changed files with 5 additions and 3 deletions

View file

@ -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";