- The _query command now generates JSON with the string entities
  properly encoded.
This commit is contained in:
Paul Beckingham 2011-01-23 00:08:47 -05:00
parent 57c1983e07
commit eaf184c833

View file

@ -27,14 +27,15 @@
#include <sstream>
#include <algorithm>
#include "Context.h"
#include "Nibbler.h"
#include "Date.h"
#include "Duration.h"
#include "Task.h"
#include "text.h"
#include "util.h"
#include "main.h"
#include <Context.h>
#include <Nibbler.h>
#include <Date.h>
#include <Duration.h>
#include <Task.h>
#include <JSON.h>
#include <text.h>
#include <util.h>
#include <main.h>
extern Context context;
@ -462,7 +463,7 @@ std::string Task::composeJSON () const
out << "\""
<< i->second.name ()
<< "\":\""
<< i->second.value ()
<< JSON::encode (i->second.value ())
<< "\"";
++attributes_written;
@ -487,7 +488,7 @@ std::string Task::composeJSON () const
out << "{\"entry\":\""
<< d.toISO ()
<< "\",\"description\":\""
<< i->second.value ()
<< JSON::encode (i->second.value ())
<< "\"}";
++annotations_written;