Reduced usages of EscapedString

This commit is contained in:
Benoit Blanchon
2014-08-01 15:22:30 +02:00
parent 1a01800782
commit 7c99d4d63d
6 changed files with 20 additions and 25 deletions

View File

@ -7,6 +7,7 @@
#include "JsonValue.h"
using namespace ArduinoJson::Generator;
using namespace ArduinoJson::Internals;
JsonValue JsonValue::nullInstance;
@ -30,5 +31,5 @@ size_t JsonValue::printPrintableTo(const Content& c, Print& p)
size_t JsonValue::printStringTo(const Content& c, Print& p)
{
return c.asString.printTo(p);
return EscapedString(c.asString).printTo(p);
}