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

@ -65,6 +65,11 @@ namespace ArduinoJson
return printToImpl(content, p);
}
static JsonValue& null()
{
return nullInstance;
}
private:
union Content
{
@ -89,6 +94,8 @@ namespace ArduinoJson
{
return p.print(c.asDouble, DIGITS);
}
static JsonValue nullInstance;
};
}
}