mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-24 07:47:32 +02:00
Added JsonPrintable.prettyPrintTo(Print&)
This commit is contained in:
@ -21,6 +21,9 @@ void setup()
|
||||
root["data"] = array;
|
||||
|
||||
Serial.print(root); // {"sensor":"gps","time":1351824120,"data":[48.756080,2.302038]}
|
||||
|
||||
Serial.println();
|
||||
root.prettyPrintTo(Serial); // same string indented
|
||||
}
|
||||
|
||||
void loop()
|
||||
|
Reference in New Issue
Block a user