mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-11-01 07:01:37 +01:00
RawJson() accepts any kind of string and obeys to duplication rules
This commit is contained in:
@@ -40,6 +40,9 @@ void setup() {
|
||||
// WARNING: the content of the String will be duplicated in the JsonBuffer.
|
||||
root["sensor"] = sensor;
|
||||
|
||||
// It works with RawJson too:
|
||||
root["sensor"] = RawJson(sensor);
|
||||
|
||||
// You can also concatenate strings
|
||||
// WARNING: the content of the String will be duplicated in the JsonBuffer.
|
||||
root[String("sen") + "sor"] = String("gp") + "s";
|
||||
|
||||
Reference in New Issue
Block a user