Return a JsonValue& instead of a KeyValuePair* (+40 bytes)

This commit is contained in:
Benoit Blanchon
2014-07-31 19:42:09 +02:00
parent 85ffb83aa6
commit 2c29327ebd
4 changed files with 19 additions and 15 deletions

View File

@ -8,6 +8,8 @@
using namespace ArduinoJson::Internals;
JsonValue JsonValue::nullInstance;
size_t JsonValue::printBoolTo(const Content& c, Print& p)
{
return p.print(c.asBool ? "true" : "false");