mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-24 15:57:30 +02:00
RawJson()
accepts any kind of string and obeys to duplication rules
This commit is contained in:
@ -37,6 +37,9 @@ void setup() {
|
||||
// JsonBuffer.
|
||||
root["sensor"] = F("gps");
|
||||
|
||||
// It works with RawJson too:
|
||||
root["sensor"] = RawJson(F("\"gps\""));
|
||||
|
||||
// You can compare the content of a JsonVariant to a Flash String
|
||||
if (root["sensor"] == F("gps")) {
|
||||
// ...
|
||||
|
Reference in New Issue
Block a user