mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-11-01 23:21:38 +01:00
Renamed function RawJson() to serialized()
This commit is contained in:
@@ -37,8 +37,9 @@ void setup() {
|
||||
// JsonBuffer.
|
||||
obj["sensor"] = F("gps");
|
||||
|
||||
// It works with RawJson too:
|
||||
obj["sensor"] = RawJson(F("\"gps\""));
|
||||
// It works with serialized() too:
|
||||
obj["sensor"] = serialized(F("\"gps\""));
|
||||
obj["sensor"] = serialized(F("\xA3gps"), 3);
|
||||
|
||||
// You can compare the content of a JsonVariant to a Flash String
|
||||
if (obj["sensor"] == F("gps")) {
|
||||
|
||||
Reference in New Issue
Block a user