forked from bblanchon/ArduinoJson
Return a JsonValue& instead of a KeyValuePair* (+40 bytes)
This commit is contained in:
@ -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;
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user