RawJson
Description
Allows to insert preformatted chunks of JSON in a JsonObject
or a JsonArray
. This is useful if you have a part of the document that never changes.
Example
StaticJsonBuffer<200> jsonBuffer;
JsonObject& object = jsonBuffer.createObject();
object["hello"] = RawJson("[\"wor\",\"ld!\"]");
object.printTo(Serial);
will write the following string to the serial port:
{"hello":["wor","ld!"]}