JSON
- Replaced old Tree-based parser with a faster, leaner parser. Currently lacking good error handling and a large test suite. - Integrated new parser into Task object, for encode/decode. - Replicated same basic unit tests. Needs more. - Fixed bug in handleShell that failed to call the new Context::initialize2. - Removed debugging code from CmdInstall. - Implemented format() that does not require width and precision args.
This commit is contained in:
@@ -505,7 +505,7 @@ std::string Task::composeJSON (bool include_id /*= false*/) const
|
||||
out << "\""
|
||||
<< i->second.name ()
|
||||
<< "\":\""
|
||||
<< JSON::encode (i->second.value ())
|
||||
<< json::encode (i->second.value ())
|
||||
<< "\"";
|
||||
|
||||
++attributes_written;
|
||||
@@ -530,7 +530,7 @@ std::string Task::composeJSON (bool include_id /*= false*/) const
|
||||
out << "{\"entry\":\""
|
||||
<< d.toISO ()
|
||||
<< "\",\"description\":\""
|
||||
<< JSON::encode (i->second.value ())
|
||||
<< json::encode (i->second.value ())
|
||||
<< "\"}";
|
||||
|
||||
++annotations_written;
|
||||
|
||||
Reference in New Issue
Block a user